Block score from adding more if hit twice
Kittyclaws390
Member Posts: 27
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
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.
Twitter:rondorocket
Web: rondorocket.com
Work perfect! Thanks!