Hi guys and gals, I have a problem with WebStorage, and my problem is that I cant get it to work... I read all posts but still dont know what Im doing wrong...
I have two local values, Score and HiScore. I want to save only the HiScore.
When Score > HiScore System Set HiScore to Score. (on the game layout)
I have 4 layouts, one for the menu, game, retry and credits.
- On the game layout I have this:
On end of layout, if Score is greater or equal than HiScore set Webstorage.LocalValue("HiScore")
- On the menu layout I have this:
Hishscore (text) on created, Set Text to "HiScore: " & HiScore
set local value HiScore to WebStorage.LocalValue("HiScore")
- And on the retry layout this:
Hishscore (text) on created, Set Text to "HiScore: " & HiScore
set local value HiScore to WebStorage.LocalValue("HiScore")
But nothing, what I am doing wrong? It dont quite understand it...