Timer countdown (SOLVED)

In, my games, when you touch the exit, the countdown text shows up, and an object timer starts (or resets).

the exit object has a variable that’s supposed to go down a number every time the timer goes up a number.

but for some reason it doesn’t go down.

here are my events:

What do I do?

Not tested but something like this.

I don’t understand this. Could you explain?

Is it still an object timer or a scene timer?

I used scene-timer and scene-variable instead of object.
Both should work, but for me scene is easier and better.

1 Like

Why are there so many events to check the timer? Can you not just have a single timer event that -1 from countdown each tick with a single check to make sure it’s not below 0?

https://game-previews.gdevelop-app.com/1645915616689-96934/index.html

Thank you, jack. You helped me solve it!

1 Like