Mode of the game i want to create

what to do if i want my game to have an auto lock feature. for example after playing an hour or two the game will automatically lock or unplayable.
please help me

You would start timer and check if it is greater than 2 hours

If you need it to work between scenes
Or you need to save how long you were playing between opening/closing games

Then last part of this tutorial cover timers same as example and in general tutorial is about saving/loading

And all you would need to when timer exceeded its value simply switch scene to something

1 Like

Thank you verry much. thank you for this wonderful community. im not wrong in choosing GDevelop as my first software to develop a game. God bless @ZeroX4 . God bless GDevelop community. i cant wait to ask more questions :smiley:

1 Like