Hello, Is there a way to store a value into webstorage after the player has ended or minimized the application? Does "end of layout" can do the job for me? I want to save the time of last access into webstorage when the player exit the app, then to restore this value while opening the app again, then i can calculate between them to see how much time elapsed and make things happen. There is similiar post to what i'm looking for scirra.com/forum/creating-a-tamagotchi-game_topic69871.html, but I can't do anything since I'm not sure how to do that exactly.. it would be very helpful if someone could make a small example showing how to store last time access and restore the time with the current time then calculate and make something happen, This is very important for me, thanks in advance!
Develop games in your browser. Powerful, performant & highly capable.