How to make enemy health separately for each object?

Hi,

I have done this for enemy health:

Enemy health bar it’s not needed, it’s just here for testing.

but

when player attacks enemy, as far as I can see all the other enemies were attacked at the same time even though the bullet was not in contact with them.

what I need to do that each bullet acts separately on that enemy who has been in contact ?

so that every single enemy separately acts whether he was in contact with the bullet or not.

Thank you

use an object variable

2 Likes

great I managed to do that.

Thank you