I'm having problems with getting my high score showing on another layout.
Global number HighScore = 0
Global number Score = 0
Under my "scoring" section I have:
System|Score > HighScore|WebStorage|Set local key "HighScore" to Score
Now under my "Dead" layout/events I have:
System|On start of layout|System|Create object Text(Text Field for highscore) on layer 0 at(18,455)
Just under that:
Text|Set text to HighScore
Now when I play the game and die the highscore does not show, However when I click "try again" button and go back to the main layout and play again then die the highscore shows the last highscore.
It's not updating my "current" highscore upon first play..
How do I go about fixing that?