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

Get help using Construct 2

Post » Sat Oct 01, 2016 7:32 pm

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.
B
5
S
1
Posts: 73
Reputation: 521

Post » Sat Oct 01, 2016 9:44 pm

I answered an identical question to this here : viewtopic.php?f=147&t=181688&p=1067173&hilit=arcade#p1067173

The 'Persist' behaviour will work for allowing objects to remain in the same state they were before, including instance variables etc.
B
47
S
18
G
84
Posts: 2,271
Reputation: 49,796

Post » Sat Oct 01, 2016 9:52 pm

plinkie wrote:I answered an identical question to this here : viewtopic.php?f=147&t=181688&p=1067173&hilit=arcade#p1067173

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


Thank you!
B
5
S
1
Posts: 73
Reputation: 521


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests

cron