Make a rule run once

Im making a level based game and when you get to a area you go to the next level the is a level select area but i realised you could just keep doing level one and you would unlock all the levels. My rules are this:
If MAN overlaps or collides with WIN +1 to level.
Then in the leader bird its:
If win is greater than self.level then unlock the level. Any ideas how i can do it i used this video to help me to the level select bit.

Comments

  • willkeslingwillkesling Member, PRO Posts: 123

    One way you could do this is at the end of each level change the attribute to a specific number instead of adding a +1 to it.

    For example, if you make an attribute called level ( index ) and you start the attribute at 1. When the player overlaps or collides with Win do a change attribute to 2 and so on and so forth.

    Make sure you also save the attribute. Hope this helps out.

  • mrcameron999mrcameron999 Member Posts: 182

    I have a small problem with that the actor where you pass to win gets spawned it. Any ideas there

Sign In or Register to comment.