Game-breaking Layout Changing

  • Hi everyone, I've literally just got close to finishing my game after many months and I've come across a game-breaking bug and have no idea how to fix it. Basically every time I boot the game up, after about 10 seconds it just changes to an end-game layout. Some playthroughs I've managed to make this happen, and when it does, it happens every time after you boot the game up, and some playthroughs I can't. I've tried disabling entire event sheets, changing layout names, layout orders, deleting hundreds of events, everything. The ONLY thing I've found that stops it is deleting the layout it keeps switching to, which is definitely not ideal.

    Of course it's a big crazy to send an entire project over, so my question is this: is there a way where every tick it can check if you're on the current layout, or if you're on the current layout it cannot switch to another no matter what?

    What would you guys recommend so that it continually stays on this original layout and can't switch to another?

  • The reason that it stops after you delete the layout is because C2 could no longer find that layout and would not do anything. In fact, I see that C2 will automatically remove "Go To Layout" action, if the layout it is referring to got deleted.

    Are you going around in the game using "Go To Layout (By Name)"? If so, how do you create your string to be used in "Go To Layout (By Name)" or how do you actually go around? Something is definitely wrong in your event sheets and you probably set it somewhere in the game to go the end-game layout. Search all of your event sheets where the game go to different layouts, and check for those strings if you are indeed using "Go To Layout (By Name)".

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The reason that it stops after you delete the layout is because C2 could no longer find that layout and would not do anything. In fact, I see that C2 will automatically remove "Go To Layout" action, if the layout it is referring to got deleted.

    Are you going around in the game using "Go To Layout (By Name)"? If so, how do you create your string to be used in "Go To Layout (By Name)" or how do you actually go around? Something is definitely wrong in your event sheets and you probably set it somewhere in the game to go the end-game layout. Search all of your event sheets where the game go to different layouts, and check for those strings if you are indeed using "Go To Layout (By Name)".

    Thank you! I think this may have solved it, I was unaware I could Search my events, and managed to find something. I'll let you know if it stays fixed. Thanks once again

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