I tried implementing a simple highscore system for over 7 hours straight using the new local storage feature the only problem is IDK HOW TO USE IT without getting a NAN
https://www.facebook.com/TheSSGames/photos/a.435833813261408.1073741828.434494416728681/435833826594740/?type=3&theater
The answer is in the manual:
Note WebStorage only stores strings. If you set a key to a number like 100, when you retrieve it back it will be a string. To convert it back, use the system expression int, e.g. int(WebStorage.LocalValue("score")).
Develop games in your browser. Powerful, performant & highly capable.
I can't incorporate that into my code without errors. I'm using Localstorage but I named it webstorage
Update: I added int("scorehi") on row 4 on the 3rd section. It got rid of the NAN but now it's just 0
on start of layout....
korbaach THANK YOU!!!