Savegame problem

0 favourites
  • 9 posts
  • 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:

    [attachment=2:3id0wtaj][/attachment:3id0wtaj]

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

    [attachment=1:3id0wtaj][/attachment:3id0wtaj]

    [attachment=0:3id0wtaj][/attachment:3id0wtaj]

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

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

    [attachment=2:3dzrudk2][/attachment:3dzrudk2]

    Then loaded by hitting the retry button:

    [attachment=1:3dzrudk2][/attachment:3dzrudk2]

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

    [attachment=0:3dzrudk2][/attachment:3dzrudk2]

  • 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:

    [attachment=1:173qgx23][/attachment:173qgx23]

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

    [attachment=0:173qgx23][/attachment:173qgx23]

    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.

  • - 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.

  • 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.

  • 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.

  • Is it possible for you to rewrite it to use web/local storage?

  • - 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?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)