Savegame problem

Get help using Construct 2

Post » Mon Jan 26, 2015 4:50 pm

My game runs perfectly but when I save and load the save, certain aspects of the game break. I have spriter objects set to collision sprites every tic by this behavior:

association.PNG


The collision sprites are created and then the spriter objects are created and associated with these behaviors:

box spawning.PNG

walker spawning.PNG
You do not have the required permissions to view the files attached to this post.
Last edited by PSI on Mon Jan 26, 2015 5:05 pm, edited 1 time in total.
Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Mon Jan 26, 2015 5:02 pm

@PSI I don't know if it is just me but I can't see the pictures. They are not loading on all my browsers.

Do you really need the "no save" behavior? I would try it first wihout. I had problems with that too and removed them all and it worked fine again. If you need it then integrate it step by step and test it so you will notice if any objects shouldnt have that.
B
34
S
9
G
3
Posts: 206
Reputation: 7,851

Post » Mon Jan 26, 2015 5:09 pm

On start of layout the first time through a particular layout, the game is saved:

save game.PNG


Then loaded by hitting the retry button:

load save.PNG


Before the save and load, only one spriter object gets associated with each collision sprite:

screenshot-localhost 50000 2015-01-26 11-31-39.png
You do not have the required permissions to view the files attached to this post.
Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Mon Jan 26, 2015 5:11 pm

After the load, the latest collision sprite to be spawned will get all of the spriter objects of that type of enemy applied to it:

screenshot-localhost 50000 2015-01-26 11-39-18.png


The event sheet being used has many event sheets attached - not sure if this is part of the puzzle or not:

event sheet.PNG


I have applied the "no save" behavior to all of the sprites and spriter objects involved in case that's part of the problem but that doesn't help. I've been banging my head against this problem for a few days now and am not making any headway. I would be grateful for any ideas of what the problem may be. Thanks, Morgan.

Sorry I had to post this in chunks but google drive seems to be showing it's ass today.
You do not have the required permissions to view the files attached to this post.
Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Mon Jan 26, 2015 5:14 pm

@MACPK - thanks for the suggestion, I started without the no save behavior and was getting the same broken results after loads - that's why I tried it.
Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Mon Jan 26, 2015 5:18 pm

Now it's showing the images. What version of c2 are you using? There was a bugfix about "save game" shortly. My problem was fixed by it.
B
34
S
9
G
3
Posts: 206
Reputation: 7,851

Post » Mon Jan 26, 2015 5:28 pm

Release 195. At first it seemed like it was working well but I noticed these association problems. Not sure where the problem is. Very frustrating.
Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Mon Jan 26, 2015 6:11 pm

Is it possible for you to rewrite it to use web/local storage?
B
34
S
9
G
3
Posts: 206
Reputation: 7,851

Post » Mon Jan 26, 2015 8:52 pm

@MACPK - WebStorage depends on cookies, right? I would hate for my player's save games to get erased if they clean their cookies. Do you think that the problem is a bug in the software or some disorder in the event system?
Image
B
20
S
4
Posts: 382
Reputation: 2,974


Return to How do I....?

Who is online

Users browsing this forum: NECRONOMICRON, Yahoo [Bot] and 25 guests