Went through many tutorials and just can’t get anything working. I’m just trying to do a simple count down timer. Like a mario stage timer. I have the variable on the text but I don’t understand anything else. I tried this and it works but goes way too fast. Can someone please show me a simple stage timer?
Timers are not the same as variables. I would recommend having a different name for the timer and for the variable to avoid confusion. In this case the timer Time has nothing to do with the variable Time.
If you want the variable to decrement every second, you could add the condition “Value of a scene timer > 1 second” to the event. If I were to do this I might name the timer something like “tickSecond” and the variable “timeLeft”. Another action will then need to be added to this event to restart the timer again, or else it will only trigger once.
You should not subtract 1 but 1*TimeDelta()
Also you are not displaying timer but variable
"Variable Timer " + ToString(floor(VariableTimer)) + "
CDTimer " + ToString(floor(abs(TimerElapsedTime("CDTimer") - 15)))
Press Space
https://games.gdevelop-app.com/game-5568a703-001e-44fc-93f4-19b1f0a781b7/index.html
To have a countdown timer yourself, use the following events:
Alternatively, there is a countdown timer extension you could use:
@N0M4D if you are making a Mario Dan game I would make the timer count down every half a second