How do I make save load work?

Get help using Construct 2

Post » Fri Aug 15, 2014 12:47 am

I've read and tried the tutorials on saving. I tested the save, load with the ghost shooter tutorial and it worked BUT when i uploaded it to Kongregate it no longer saved. Now with a new game i am working on I can't get save to work even with Run testing. I used the keyboard on S clicked save to myfile. keyboard on L clicked load myfile. I am wondering if i need to do more than this to get the saves to work and if so what? My new game is a clicker/idle type game with buttons so not sure if that causes me to not be able to save with the keyboard controls.

Also is it possible to get system every x seconds to save game to myfile. I'd tried that coding but doesn't work either. i'd prefer this type of save if anyone can explain or point me toward an explanation a beginner would understand. thanks
B
6
S
1
Posts: 36
Reputation: 452

Post » Fri Aug 15, 2014 11:02 am

Upload an example capx where save and load doesn't work, i will fix it for you.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Fri Aug 15, 2014 11:30 am

hope this works
B
6
S
1
Posts: 36
Reputation: 452

Post » Fri Aug 15, 2014 12:07 pm

Deanomyite wrote:hope this works

Okay, i can't see any problem, everythings save and load.
Better make buttons on screen for saving and loading, if you had problems with keyboard actions.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Fri Aug 15, 2014 12:09 pm

Oh, and if you want to save the game state without buttons, better not use every tick, use every second, or add a save action to all conditions that changing the game state.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Fri Aug 15, 2014 12:23 pm

thanks for taking a look. i can't figure out why it's not saving for me. I'll try making buttons and see if that works
B
6
S
1
Posts: 36
Reputation: 452

Post » Fri Aug 15, 2014 1:28 pm

In this case, where all you actually want to save are the variables, why not use webstorage?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Aug 15, 2014 4:36 pm

If i knew how I would probably do that. I've searched on and off for 2 days before posting this and didnt really find any tutorial that "showed" exactly what i needed to do.
B
6
S
1
Posts: 36
Reputation: 452

Post » Fri Aug 15, 2014 6:05 pm

update: I changed nothing and now the save/load with keyboard is working for me. IDK what was going on
B
6
S
1
Posts: 36
Reputation: 452


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests