Make A Variable That Saves Without WebStorage?

Get help using Construct 2

Post » Sun Jul 14, 2013 8:54 am

Hello,

I am making a game where the user can buy coins via CocoonJS in-app purchases. I want to store the coins in a variable that saves for the next play session (even if the user quits the app), but I am wary that if I use WebStorage then all coins could be lost if the user clears the browser cache.

What alternatives are there? I am making an Android app.

Thank you!

OrangeFlash81
B
8
S
2
G
2
Posts: 49
Reputation: 1,894

Post » Sun Jul 14, 2013 9:00 am

Webstorage's informations are independent from the browser's cache, so even if it gets cleared, the informations will still be there.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
272
S
99
G
70
Posts: 7,267
Reputation: 75,794

Post » Sun Jul 14, 2013 1:27 pm

Oh, OK! Thanks!
B
8
S
2
G
2
Posts: 49
Reputation: 1,894


Return to How do I....?

Who is online

Users browsing this forum: Cryttexx and 1 guest