Hi there,
I’m trying to make a loot box, but I cannot figure out how to make a timer persistent even if the player kills the app.
Could anyone give me a hint?
Cheers,
Hi there,
I’m trying to make a loot box, but I cannot figure out how to make a timer persistent even if the player kills the app.
Could anyone give me a hint?
Cheers,
I think this would help:
API reference (os)
You can use different functions to get the current os’ time and date and then check if the time that has passed since the app was closed and opened again is bigger than how long it takes to open a lootbox in your game.