Why is my second Goto layout not working?

Just started using Construct 2? Post your questions here

Post » Mon Jan 25, 2016 9:41 am

Hi everyone,

I have searched the forum and read the manual to find out what I am getting wrong. But without getting any wiser.

I have a main menu with a start button that uses Goto layout "Level-01" and that works fine.

But in Level-01 I have a pause menu setup. It uses a function to set timescale to 0. In this menu I have a QuitToMainMenu button. But when I use goto layout "StartMenu" nothing happens. I have no idea what causes it to not respond. Is it the timescale set to 0?

Have tried to put the code different places to see if it changed anything. Really lost.

Here is a screenshot of my Event sheet.
https://www.dropbox.com/home?preview=Construct+2+beta+release+r220+%28Administrator%29+-+Maze_prototype_01.capx+-+Event_Level.jpg

Any hints really appreciated.
Thanks
B
16
S
2
Posts: 12
Reputation: 731

Post » Mon Jan 25, 2016 4:37 pm

Do the separate layouts each have their own event sheet?
Make sure the event sheets are linked (aka included), do this by right clicking the event sheet and choosing (if I remember right) "include" and select other sheet(s) it references.

If that is not the case, your question is easily bug tested by simply removing the timescale and seeing if it functions correctly.
I also believe that timescale only affects things that are using delta time so it "shouldn't be" affecting a menu swap.

Also, once the action to change layouts is reached anything past it in the same event is moot unless the layouts are set as global layouts.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
54
S
15
G
8
Posts: 608
Reputation: 8,767

Post » Mon Jan 25, 2016 8:41 pm

Yes they had their own event sheets. And I did what you suggested and it works now. Thanks! Can see I need to re-arrange and spread out my game controls etc to different Event sheets.

Cheers!
B
16
S
2
Posts: 12
Reputation: 731

Post » Mon Jan 25, 2016 10:54 pm

Well planned event sheets and using groups (so you can minimize/maximize as needed) make working in Construct2 so much easier.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
54
S
15
G
8
Posts: 608
Reputation: 8,767


Return to Beginner's Questions

Who is online

Users browsing this forum: bigezy80 and 1 guest