Persist behavior

0 favourites
  • 4 posts
From the Asset Store
Skin it
$14 USD
30% off
A skin plugin and behavior to add a skin system in your game.
  • 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? <img src="smileys/smiley1.gif" border="0" align="middle" />

    Thanks.

  • or how do I change the layout, and go back to the same layout without reset?

  • 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 ;)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • rogueNoodle - thanks for the reply :)

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