Saving using the System object is simple, and so is loading. Apart from saving and loading a separate Local Storage item "DoesSaveExist", is there a way of checking whether a save exists without actually trying to load it?
Develop games in your browser. Powerful, performant & highly capable.
You can but you will have to use local storage. Have a global variable or an array dedicated to it, when you press the safe button set the variable to 1, and save it to local storage.
After that on star of layout load the variable from the local storage and once is loaded check its value if its 0 then there are no saved games if its 1 then there is a saved game.
Just rehashes of Local Storage solution, got it. Thanks.
It feels like the System object should have a capability to just check if a save slot is occupied. Loading and checking for success/fail is a little inadequate.