Hey sorry that I could not reply, I just got my internet back. This is what previously happened.
Supaboy86
am making a Metroid Prime type game and I don't know how to kill an enemy by shooting it by a certain number of times. Need serious help!
Make an actor integer varable called enemyHealth.
On create enemy enemyHealth=5;
On enemy collision with bullet enemyHealth--;
On draw enemy
Code:
if (enemyHealth<=0) DestroyActor("Event Actor");
Later you can just create clones of this enemy and every one will have its own health. If any of these terms are unclear check out the tutorials, the forum search or GE documentation, but feel free to ask any questions thats why we are here. Hope this helps.
_________________
Here is the problem. I don't know about variables, Integers or anything dealing with a global code!! please help me to make my dream game come true by solving my one problem. Thank you