Problem with collision and life
Hello,
I have an actor with a self attribute that is "life" and the value is 30. I want that when this actor collides with a bullet to do self.life -10 and when is = 0 destroy actor. When I spawn for example every 0.2 sec. a bullet, the life go only to 20 but if I stop to spawn for a bit and then spawn it is now 10 (correct). Here is a video: I want that every bullet collide with my actor, to decrease his lives by 10.

Here is the simple rule:

Thanks
I have an actor with a self attribute that is "life" and the value is 30. I want that when this actor collides with a bullet to do self.life -10 and when is = 0 destroy actor. When I spawn for example every 0.2 sec. a bullet, the life go only to 20 but if I stop to spawn for a bit and then spawn it is now 10 (correct). Here is a video: I want that every bullet collide with my actor, to decrease his lives by 10.

Here is the simple rule:

Thanks
Comments
Try placing the collide test within the projectiles and make "life" a game-level attribute.