I have followed some example and capx files for the Local storage tutorial, so it is working when browser is open.
But when I reopened the browser the last High score not shown on screen.
Any help will appreciate!
Thanks in advance
Develop games in your browser. Powerful, performant & highly capable.
What do you mean when you say it is working when browser is open? Doesn't sound like localstorage has worked at all here and you will need to double check your logic from the tutorial.
Are you sure you are saving and loading the data correctly?
I have tried this type of event.
please click on the following link.
https://www.dropbox.com/s/6umb85plcxrkhdt/IMG.jpg?dl=0
LocalStorage is a little buggy and sometimes it won't load all data.
Read this thread:
I am using the method of saving anything into a dictionary and then saving the dictionary as one item in the LocalStorage
RobertMKD,
Thanks! can you please tell me how to write event.
and
plinkie,
The problem is solved, I have missed there one step.
"Local storage" -"get item"
Thanks for the comments !