How do I easily move between layouts?

Get help using Construct 2

Post » Fri Mar 20, 2015 5:27 am

On the first Layout I have a door in my game which leads to layout 2,
However when I go back through the door to return to level one,
the whole layout restarts with my guy back at the beginning, how
do i get him to be at the door location upon returning to Level 1?
B
7
S
1
Posts: 10
Reputation: 548

Post » Fri Mar 20, 2015 6:26 am

Hey cmbbar, :)

I think the two main things you're probably looking for are global variables, and the "Persist" behavior.
(Those links go to the corresponding C2 manual pages.)

Global variables keep their values between layouts.

The Persist behavior, saves and preserves the state of objects between layouts, such that when you go back to a layout, the persistent objects will be wherever you left them last, instead of resetting to their starting positions.
B
27
S
18
G
8
Posts: 328
Reputation: 6,158

Post » Fri Mar 20, 2015 7:05 am

Thank you! It was the persist behavior that I needed to use.
Is working perfectly now.
Thanks fisholith!
B
7
S
1
Posts: 10
Reputation: 548

Post » Fri Mar 20, 2015 9:56 am

No problem. :D
B
27
S
18
G
8
Posts: 328
Reputation: 6,158


Return to How do I....?

Who is online

Users browsing this forum: Kin and 40 guests