Hi GenkiGenga, no worries on the timing! Thank you very much for taking the time to create and post the example, your method is what I had at the outset but I found that I am limited to users sticking with one browser (Ref: ) and also knowing when to click continue or play a new game (silly I know but I want to keep it as simple as possible i.e when a user clicks play - action will either load the previous save state from local storage or if missing load a new game)
I have read and re-read a bunch of tutorials/references on web-storage and found a few mentions of local storage and this is what I have learned so far:
I think i understand the logic of it now but I'm still missing something. Thank you for your encouragement!
Gosh, just saw that I dont have enough reps to post my image - here is the image in text form
This is on my Level Layout
Global variable SaveGame = 0
System - Start of Layout - LocalStorage - Check items "SaveGame_key" exists
LocalStorage - On Item "SaveGame_key" exists - LocalStorage - Get item "SaveGame_key"
LocalStorage - On item "SaveGame_key" get - System - Set SaveGame to LocalStorage.ItemValue
LocalStorage - On item "SaveGame_key" missing - LocalStorage - Set item "SaveGame_key" to "SaveGame"
This is on my Start Game layout:
Mouse - On Left button Clicked on play button (which is a sprite) - LocalStorage - Get Item "SaveGame_key"
then another action on this too System - Go to Levels (level layout)