Persist behavior

Get help using Construct 2

Post » Wed Apr 24, 2013 3:22 am

hi, how do I disable the Persist behavior ?

I made a menu in another layout but when I come back, the layout restarts.
so I'm using the Persist behavior, but now when the character dies it back to the same point.


I want to disable when the character dies, to return to the beginning of the layout.

can someone help?

Thanks.
B
4
Posts: 10
Reputation: 495

Post » Wed Apr 24, 2013 3:42 pm

or how do I change the layout, and go back to the same layout without reset?
B
4
Posts: 10
Reputation: 495

Post » Wed Apr 24, 2013 6:57 pm

@Railander - I'm a little unclear on what you're trying to achieve. Is it that you want to return the main character to the starting point of a level but otherwise leave the level untouched? An easy way to do that would be to give the player instance variables for it's starting position, set those at the start of the layout to the player's position, and then when the player dies, just set it's x & y coordinates to the original position.

Of course, I might be completely misunderstanding the problem ;)
B
9
S
3
G
4
Posts: 63
Reputation: 3,083

Post » Sun May 12, 2013 8:25 pm

rogueNoodle - thanks for the reply :)
B
4
Posts: 10
Reputation: 495


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 17 guests