How do I check if a game save exists so say a load game/continue button will load only if there has been a previous save. Compare two values I'm guessing?
Develop games in your browser. Powerful, performant & highly capable.
when you save you could use webstorage to also save a key with the save slot info, then you can check if that key exists
Thanks yeah I got it working fine with what you recommended with Webstorage, I thought maybe there was a way to check the save slot itself with compare variable "mysave" exists or something, but it's working fine with Webstorage now.
You can make it with variables, But if the player close the browser it will be deleted.
So using Webstorage will fix this.