Hello, I'm trying to figure out how to make a save a load state system.
The game I'm working on has a lot of spawned and moving objects as well as array data. I was wondering if there was an easy way to save the state of everything in the current and/or all layouts.
Please know that I'm pretty new to Construct2. I'm still exploring the features such as the WebStorage plugin, but haven't quite figured out how to get it working. Any help would be greatly appreciated. Thanks. <img src="smileys/smiley2.gif" border="0" align="middle" />
Develop games in your browser. Powerful, performant & highly capable.
There's no way to save everything yet. You can try WebStorage, but it is difficult to save a lot of data with it. The easiest thing is probably just to save the level/stage number to WebStorage, and load from that.
Thanks for the reply.
I've read about storing level/stage number but this won't be possible in my situation because a level/stage system goes against the design of the game I'm making. It's more Sim-City and less Mario in that sense.
I suppose I can experiment with the WebStoage plugin to see how much data I can get saved before it starts hurting performance.
My game is essentially a tile based puzzle game and I need to store data such as XY Loc, tile type, and other values for every tile in the layout so that it can all be restored upon a load.
Preferably I'd like to keep all this data confined to an array. Would it be possible to quickly save/store an entire array's worth of data using WebStorage? Then upon load I make the game update the array with all the values that have been saved/stored?
Also, Is there a way to have an array load pre-defined data from a spreadsheet or TXT file?
Another question, what is the difference between the "WebStorage" and the "Storage" plugin (Storage Plugin)?
Sorry for all the questions. I'm still pretty new at Construct but am really enjoying it.