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.