You have to do a system of variables. If the bullet collision with the enemy (trigger once), add 1 to the variable “Health” of enemy.
And another event, when object variable “Health” of enemy is x (the times you want the bullet to collision with the enemy before he dies) - and trigger once-, then eliminate enemy.
Can you describe exactly what you want to achieve or what does not work?
Instead that the enemy dies after a few hits he is complete undestroyable. The kollision between the bullet and the spider works. But instead to disappear after a few hits he undestroyable `cause he tooks unlimited hits.
I’m kind of blind but yes, i think it says -1. And that is not all, you have to add “trigger once” as a condition on those events. In that way, the event will consume less resources and you will prevent some troubles with how much time the bullet is colliding with the enemy (if you don’t use “trigger once”, that condition will get true every frame that the bullet is in collision with the enemy).
I would just do: at the start of the scene value of a variable is x. Oh and the numbers should be 1 not -1 and the death condition should be = 0 or </=0 (but if an attack can reach the negatives).Hope it helps😀 (</= is the below or equal to sign)
I’m not sure you need the trigger once, because as soon as a collision with the bullet is registered, the bullet is deleted. Having a trigger once means that if multiple bullets hit within a few frames of each other, only one of them registers.