Save into webstorage at the end of app?

Get help using Construct 2

Post » Tue Aug 27, 2013 4:15 pm

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 http://www.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!
B
4
S
1
Posts: 16
Reputation: 507

Post » Wed Aug 28, 2013 8:40 pm

Help anyone?
B
4
S
1
Posts: 16
Reputation: 507


Return to How do I....?

Who is online

Users browsing this forum: MassimoF and 23 guests