My question is, How can I load the player configurations from a dictionary at the start of the game and how to save it when he changes something or when he close the game.
I've read some posts but I can't get it.
Use Local Storage:
https://www.scirra.com/tutorials/1461/h ... age-plugin
Develop games in your browser. Powerful, performant & highly capable.
I read all the post and I still dont get it.
I check if the item exist then if it exist , I use 'LocalStorage get item "Player_Configurations" ' then 'On item "Player_Configurations" get LocalStorage Set item Player_Configurations.CurrentValue to LocalStorage.Key'
Note: Player_Configurations is the name of the dictionary too and it uses Instance Variables.
If it doesnt exist 'LocalStorage set item "Player_Configurations" to Player_Configurations.CurrentValue'
When I change Something I use again the 'Set Item "Player_Configurations" to Player_Configurations.CurrentValue' but when I open the program again it doesnt save the changes.
I tried to export it and still dont working.
Am I Doing Something Wrong or Missing Something?
You need to convert dictionary data to/from JSON.
See this demo:
https://www.dropbox.com/s/f2d7lc8o4zajg ... .capx?dl=0
Thanks a lot!!! I finally get it