Hello,
I'm almost done with my first game, and i would like implement that when my player has 0 life system add life on my player like every 2 hours even if the game is closed,can someone please help me about it?
I would say that you need to save the time the game was closed.
When the game is started again, load the saved time and compare it to the current time.
Depending on the difference you know how much life to add.
Here us a link to get you started, look for the section about unixtime:
construct.net/en/tutorials/building-clickeridle-games-2388/building-basic-clicker-2
Develop games in your browser. Powerful, performant & highly capable.
Thank you so much, i solved this problem with unixtime