Go to layout stops working after loading game

Not favoritedFavorited Favorited 0 favourites
  • 3 posts
From the Asset Store
Custom Loading Icons to Enhance Your Loading Screens
  • So I'm not sure if this is a bug or not, but anyway.

    The way my game is set up is that the first layout of the game is a just an empty layout, with two actions on the sheet:

    On start of layout > load game from slot "xxx".

    And If load failed > Go to layout "Menu".

    At the start of each level (each level is a separate layout using the same event sheet) I save the game to slot "xxx".

    The first Action in the event sheet is, On load complete > Go to layout "Menu".

    This works as intended, and I can go to my level select menu and choose level etc, however, now any action that is to go to another layout (be it a specific one, go to next, etc) just doesn't work. The game freezes, and everything in the inspector disappears to shoing any layout information, or any objects anymore.

    If I start the game from the beginning with an empty save slot, everything works, until I quit the game, and start it up again.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's difficult to understand what's going on. Ho many "Load" actions do you have in the project? Make sure the first event sheet (used in that empty layout) is not included into other event sheets.

    I suggest adding browser logging to all related events - before calling Save/Load, into "On Save completed" and "On Save completed".

    Then run the game, open browser console and check the messages.

  • Yeah, it's kinda hard to explain, it's a really weird problem, never experienced anything like it. Here's how it looks:

    This is the event sheet of the first layout (I doublechecked, it's the first, and that event sheet isn't included anywhere else.

    That works, and it loads the game to whatever layout was the latest (all the levels use the same event sheet, and it's not included anywhere else). This is the first events (there's no load event anywhere else in the project).

    This too works, and I get to the menu, with everything saved. In the menu you make this choice, which also works and everything is as it should.

    Here's the inspector after loading, everything works.

    It is after that, any event that goes to another layout (I tried different ways) that causes the game to freeze.

    I'm not sure how browser logging works? I tried looking in the forum and manuals here, but couldn't find a good explanation.

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