Using Webstorage to save Sound settings

Get help using Construct 2

Post » Thu Nov 13, 2014 1:02 pm

Hi, how can I save the on/off state of a sound button so the game remembers if the player turned the sound on or off the next time they play? So I want to save the animation frame and the sound on/off state (I am using a variable for this).

I tried setting it up so when the player's HP reaches 0, the on/off variable is saved to web storage. From there, when the scene begins again I have it set sound variable to whatever the webstorage variable is. However this does not work, instead it always starts my scene with the sound off regardless of the last play through. I also tried using webstorage every time the button is clicked instead of on death and still no luck.
B
6
S
1
Posts: 71
Reputation: 548

Post » Thu Nov 13, 2014 1:42 pm

...........
You do not have the required permissions to view the files attached to this post.
Image
B
64
S
23
G
7
Posts: 1,481
Reputation: 10,823


Return to How do I....?

Who is online

Users browsing this forum: stevenode, tarek2 and 8 guests