Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
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
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")).
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
Develop games in your browser. Powerful, performant & highly capable.
on start of layout....
korbaach THANK YOU!!!