Why is my second Goto layout not working?

0 favourites
  • 5 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • 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

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

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well planned event sheets and using groups (so you can minimize/maximize as needed) make working in Construct2 so much easier.

  • wow Thanx, I was stuck for 3 days trying to get buttons to work on a credits page.

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