Questions tagged [timer]
A way of measuring time intervals for the purposes of triggering an action after some elapsed time.
179 questions
0 votes
0 answers
120 views
How to detect when console system time was changed since the game was last run, without a net connection?
As an example of the behaviour I want to implement in my game, look at Bloons TD 5 on the PS4/PS5 and its Daily Chest Reward. If you disconnect the internet and change the date and time and play the ...
1 vote
1 answer
331 views
Making a countdown time readout in Godot 3.1
I wrote this script to design countdown in my game: ...
0 votes
2 answers
872 views
Cooldown in the new input system of unity
A few days ago I first used the new input system of unity for my game and I ran into a problem. So basically I cant seem to figure out how to implement cooldown in the new system. Either it just ...
0 votes
0 answers
60 views
Strategy browser game - Update tables on refresh
I am building a Travian clone for learning purposes using FastAPI for the backend. I want to update my current logged user tables whenever they are making a new request (such as loading a new page) ...
0 votes
0 answers
60 views
WebRTC - Protocols and Getting the Timing Right in a Racing Game
I am trying to work out the protocols to set up a game between 2 players and the ideas behind getting the timing right between those two players in a running race game. Since this is obviously a timed ...
0 votes
1 answer
126 views
Why does my spawner spawn multiple times at start-up, only in build?
I'm making a small game similar to Super Hexagon. I've recently asked a question about making the game harder as the player progresses by increasing the obstacles' spawn rate. I was able to implement ...
0 votes
0 answers
870 views
Fixing the frame rate for SDL2 2D game
Working on a 2D game with SDL2, for now on Window, but I'd like to dream and imagine that if I finish it, I could run it on other platforms that SDL2 games can target. A core part of which is GGPO ...
-1 votes
1 answer
579 views
How do I save my Highest Time for each level on playerprefs?
So I want to make hill climb wanna be game but have an issue with saving bestTime each level, the point is I want to save the best time for each level to ...