Save and load game? HELP

Discussion and feedback on Construct 2

Post » Thu Jan 24, 2013 2:00 pm

Can you explain how to make a system to load and save games?
B
7
S
2
Posts: 177
Reputation: 1,484

Post » Thu Jan 24, 2013 3:26 pm

@amariscal

I'm hoping for a feature to save games better than storing variables and a time ago the programmer of C2 replied talking about a feature what can do it, but is not yet ready to be used, it's called "save state".

So, well, you don't have many options. If you want save and load, you'll need to backup your variables in any place you want, like a xml, a txt, whatever, and restore it.

The simpler the game is, simpler the solution, but if you start to use inventories, bags, etc, where have many variables, prepare yourself for a big headache or simple give time to the time, like myself.
ImageImageImageImageImageImage
B
93
S
20
G
12
Posts: 1,211
Reputation: 18,473

Post » Thu Jan 24, 2013 6:56 pm

Webstorage, or the clay.io plug-in are your best choices.
B
40
S
12
G
7
Posts: 603
Reputation: 7,656

Post » Thu Jan 24, 2013 8:38 pm

For the time being, as others stated above, you'll need to use WebStorage or the Clay.io plugin to save information.

One suggestion to try, which I'm currently experimenting with, is to design the game so that save information can be stored and retrieved easily. For example, using map coordinates to indicate the player's position or using simple true/false (binary) options to indicate whether or not a player has an item.

Basically, if you know the limitations of what you're working with, try and design your game around those limitations and maximize your design efficiency.

Best of luck, sir.
B
16
S
6
G
2
Posts: 152
Reputation: 3,764


Return to Construct 2 General

Who is online

Users browsing this forum: TheRealDannyyy and 10 guests