How can I make a countdown...?


#1

Hi everyone! How can I make and display a sixty minute countdown on the screen? I want that when that time passes I change the screen and put gameover.
Thanks in advance!:hugs:


#2

Make a timer, on the beginning of the scene reset it and set a variable countdown to the number of seconds to make that time. Add an event with condition timer is >= 1 and actions reset timer and substract one of the variable countdown. For showing it divide the value of the variable by 60 and show the number before the period as minutes and the ones after as the seconds. Add an event variable countdown is = 0 and action change scene to game over.


#3

Thank you, Iโ€™ll try it๐Ÿ˜…


#4

Well gdevelop has a new example on that. If you are not clear on how that works or you need another method checkout this tutorial