This is what I did:
Create two text objects(t1 and t2(t2 in the game over))
Every 0.1 seconds
- Add +1 to Global variable Score
I have a player who flies and if he collide with the floor,
-Go to Game over layout
-Set t1 to Score
In the gameover layout, If Global,Score > highscore
highscore set to Score.
t2 set to highscore
So I want to save the high score in local.
So this is the event above.
If Global,Score > highscore
-highscore set to Score.
-Set key"savescore" to highscore
-t2 set to webstorage.localkey("savescore")
But it does not load. t2 shows correct but when I close the game(Preview) and open,t2 is again zero
<img src="smileys/smiley11.gif" border="0" align="middle" />