Hello Hello!
In the game I build my character can shoot at enemies and after 2 hits eliminate them.
I created a global variable for the enemy of ENAMYHP = 2 and as it hurts it it drops by 1, and when it reaches zero the enemy is destroyed (pretty standard)
The problem starts when I take the enemy and duplicate him. I can keep shooting them but nothing happens - I guess because it's a global variable - all enemies of the same type lose 1 life ....
How do I make it so that when I hit an enemy it lowers him and only his HP and not the other identical enemies?
Thank you very much