SImple Collision question
daverenner
Member Posts: 133
I have an object that has a limited amount of "hit points". Everytime it collides with objects i need it to subtract 1 point. The problem is, sometimes it subtracts 3 points or 7 points etc. Is that due to it hitting an object and sitting there for a split second to long so it sees it as multiple collisions? How would i fix this?
Thanks...dave
Thanks...dave
Comments
Try this
Rule - when actor overlaps with other actor
Timer - after .1 seconds
-----change self.hitpoints to self.hitpoints-1
Be sure to leave run to completion UNchecked. That way it will only subtract if it is still touching after .1 seconds. if it is still too touchy change .1 to .2 or .3 - just experiment with it until it works how you think it should.