jakeedge02
Add the LocalStorage object
Add global variables Score=0 and HighScore=0
Initialise your high score:
System: On start of layout
-> LocalStorage: Get item "HighScore"
LocalStorage: On item "HighScore" get
-> System: Set HighScore to int(LocalStorage.ItemValue)
In your level end event (where you'd show the high score and have a restart button), add a sub-event:
System: Compare Score > HighScore
-> System: Set HighScore = Score
-> LocalStorage: Set item "HighScore" to HighScore