Save & Load State

Get help using Construct 2

Post » Tue Oct 25, 2011 8:27 am

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.
B
3
G
1
Posts: 6
Reputation: 687

Post » Tue Oct 25, 2011 9:39 am

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.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Tue Oct 25, 2011 5:30 pm

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.
B
3
G
1
Posts: 6
Reputation: 687


Return to How do I....?

Who is online

Users browsing this forum: Paradox and 5 guests