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?
B
60
S
19
G
3
Posts: 451
Reputation: 6,364

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: No registered users and 7 guests