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?
jack
February 26, 2022, 6:24pm
2
Not tested but something like this.
I don’t understand this. Could you explain?
Is it still an object timer or a scene timer?
jack
February 26, 2022, 8:25pm
6
I used scene-timer and scene-variable instead of object.
Both should work, but for me scene is easier and better.
1 Like
Eiklahc
February 26, 2022, 10:47pm
7
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