Block score from adding more if hit twice

Okay so whenever my actor is touched it changes image and adds 10 points before being destroyed in half a second but if I hit that same actor over and over again before it disappears 10 points adds every time. How do I fix it so it doesn't do this?

Comments

  • RondoRocketRondoRocket Member Posts: 411

    Add a self.hit boolean to the actor and include it into the hit rule. In the hit rule have it check to make sure self.hit is false and then include a change attribute behavior that changes it to true. This will only allow it to be hit once but the actor can hang around before being destroyed.

  • Kittyclaws390Kittyclaws390 Member Posts: 27

    Work perfect! Thanks!

Sign In or Register to comment.