i just wanted to know something about the Localstorage/Webstorage: I have a level selection (locked, unlocked, 1 to 3 stars) screen, with arrays and instance variables and everything works perfectly: when i finish a level and i go back to the screen selection, the passed level is done and the unlocked level is ok. For example, if i pass level 3, level 4 is unlocked, and if i decide to go to level 1, nothing changes, the progress is perfect!
Somehow, when i use the localstorage or the webstorage (same result) and I refresh the browser, it locks the last unlocked level! I did every possible thing that could be done, but I can't figure if it's a problem in my code or that there's a problem in the storage.
Here are screenshots of what I'm talking about:
Level event sheet:
Level selection event sheet: