How do I not reset a layout when I leave it?

  • A little confusing, but title restraints. What I want to happen is for the character to go up to an arcade machine in layout (a), press z to interact with it, and once z is pressed, the player goes to layout (b) to play an arcade-styled minigame, and once the minigame is finished, for the player to go back to layout (a) and resume gameplay from where they stood.

    I thought about saving the game file just before the player enters the minigame, but that would only reset all the data, making it pointless to go to the minigame at all, and i already have "on start of layout" conditions on layout (a), so i'm stuck on how to successfully go back to (a) from (b) without erasing any data.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I answered an identical question to this here :

    The 'Persist' behaviour will work for allowing objects to remain in the same state they were before, including instance variables etc.

  • I answered an identical question to this here :

    The 'Persist' behaviour will work for allowing objects to remain in the same state they were before, including instance variables etc.

    Thank you!

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