Is there a "Go to last loaded Layout" action?

0 favourites
  • 3 posts
From the Asset Store
Show your master of martial arts by killing all flies empty handedly!!!
  • Hi, I've had a good search of the tutorials and manual but not found an answer so excuse the question if its obvious!

    I'm making a generic "back/exit" button that I want to simply reload the last visited layout. I will include this on many layouts so creating a generic button will help avoid having to put an event in for every specific layout. I know in theory how to get this working manually using global variables, an Array of the Layout names and the Go to Layout (name) action.

    BUT I thought I'd check if Construct2 has this functionality already in it first, seemed dumb to do all that if there is somewhere a Go to Last Loaded Layout or similar action/event/what have you.


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not that I'm aware of, but I do it in a very simple way. When you click on the exit button, before transferring to another map, set a global variable to the layout name. Ie system.layoutname (or something similar... not near c2 right now). Then, when you hit return, go to layout by name and just put in your variable that you made.

  • Thanks, that's a lot simpler than my method I had forgotten global variables could also hold text! :) Cheers!

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