I'm developing a graphic adventure and now i need to find a way to save the room so when the game starts will not build the level from the beginning each time. I have all the start configuration in an XML file with all the text strings. I should check, at start of layout, if is the first time that game starts and if not, skip first configuration and, instead, loading it from local storage. Wich is the best way to do it?
Thanks!
Option 1 - System save and load actions - https://www.scirra.com/tutorials/526/ho ... -savegames
Option 2 - Localstorage - An entire array or dictionary object holding values you wish to save can be written to a single localstorage key as JSON. That key can be checked on start of layout to see if it exists.
Hi, i have 2 explamples on my website.
http://www.synergy-studios.net/Templates/Localstorage/Simple
http://www.synergy-studios.net/Templates/Localstorage/Extended
I must thank you both... you gave me great help, thanks!
Trying now..
mmmh, not sure that save and load feature can be used with Local Storage
My game should auto-save after every action taken, but the
'LocalStorage --> On item "autosave" exists' does not seem to work, if Autosave was created with "Save" action...
They are completely separate systems...
Develop games in your browser. Powerful, performant & highly capable.
Local storage is for keep values like bestscore, lastuser, etc.
I think save and load is for this case.
https://www.youtube.com/results?search_query=save+and+load+construct+2
Yes. i'm trying to use that one. Seem to work
Local storage is for keep values like bestscore, lastuser, etc. I think save and load is for this case. https://www.youtube.com/results?search_query=save+and+load+construct+2
I think i'll use Save Game only in test environment, because i noticed some limits. for example, i didn't find a way to check if a savegame exist (but maybe i'm doing something wrong)
Then i noticed something weird if i close game during a "wait" inside a function...
I think i'll finally use local storage to save the Array and Character position