Storing global var in WebStorage?

Get help using Construct 2

Post » Tue Mar 11, 2014 12:01 am

What is the easiest way to store a global variable into WebStorage and then input WebStorage data back into the variable?

I want the checkbox in sound off/on to be preserved when exiting the game. Is there a better way to do this?
Check out my games on Google Play:

BEAST ATTACK (960,000+ downloads!)

ZOMBIE BASH (Android) (Launched Feb 17)

ZOMBIE BASH (iOS) (Launched March 17)
B
50
S
15
G
2
Posts: 427
Reputation: 5,164

Post » Tue Mar 11, 2014 7:04 am

there is a lot of info in the manual entry https://www.scirra.com/manual/120/webstorage

And there is also a tutorial explaining the topic:
https://www.scirra.com/tutorials/266/webstorage-how-to-save-ingame-information
B
20
S
6
G
4
Posts: 347
Reputation: 4,451


Return to How do I....?

Who is online

Users browsing this forum: Cha0tiXGamer, plinkie and 11 guests