Game-breaking Layout Changing

Get help using Construct 2

Post » Thu May 12, 2016 6:25 pm

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?
B
12
S
2
G
1
Posts: 47
Reputation: 781

Post » Fri May 13, 2016 2:45 am

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)".
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Fri May 13, 2016 10:45 am

TwinBlazar wrote: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 :)
B
12
S
2
G
1
Posts: 47
Reputation: 781


Return to How do I....?

Who is online

Users browsing this forum: draiza and 5 guests