Checking if a "saved-game" is there

  • Hey everybody,

    is there a way to check if the user has used the "save game" function? I have a "continue"-button that only makes sense if there is something saved. ^^ I can't find the condition for it :-/

    I know I could just build a value with webstorage but wanted to know if this is build-in or could be added in the future to be more elegant.

  • I have found that using the Web storage works best for saved games so you can have code that can look for the saved game like so, I used this in my viral tap game on the Google play store and it works fine. Not sure if its what you want, but this allows you to only save what is needed rather than having overly bloated save files:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • RandomOutput Thx, for your input. I know the WebStorage Plugin well. I have been using that on all my games I did the last two years. Now I have a RPG game and it is quite complex to save all the monsters right. I am just lazy on that and the build-in save/load game works fine for that. At the end I will use arrays+webstorage again but I think checking for "savedgame exist" like the local storage for example has it might be a keen missing feature.

    I will just add a local key I will save if the user has/hasn't saved a game so I can grey out the "continiue"-button.

    btw. This is the game I am talking about:

  • Ahh I see, sorry I did not know it was for a complex game, I can see how that would be a chore! I think as far as I can tell that the save game feature can be accessed with the same web storage lookup but just put your save game name "My_Save" by default isn't it? I think I used that in a test and it loaded variables from the save file. I will test it again and let you know.

  • Oh cool work btw

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)