I downloaded v.206 of Construct, and WebStorage is replaced with LocalStorage. So, now I can't find a solution with tutorials on the Internet for High Score.
I make a Score, but I need help for HighScore. Does anyone have an example?
So glad this forum has a search function I am able to use, when people ask questions..
I need something easier. With WebStorage it was easier. I'm sure there's another way.
In what way would you like it to be easier?
what part of this is too difficult?
Develop games in your browser. Powerful, performant & highly capable.
Unfortunately when starting, a pageful of code like the above can be daunting. However it is a very good example of how to use local storage.
Lines 1-4 - Retrieve High score from local storage
Lines 5-6 - Simulate game increasing your score
Lines 7-9 - Save High score to local storage
Lines 10-12 - Not applicaple to the query
Local storage is very useful and imo even more so when combined with a dictionary object to avoid racing issues for multiple variables.
I tried. But I missed something. Score is ok, but for High Score i have " High Score: " without numbers. I attached code.
Maybe some skillful see a mistake. Thanks
you have two events "on highscore get", one setting it to 0 and one setting it to localstorage.Itemvalue..