Make an actor integer varable called enemyHealth.
On create enemy enemyHealth=5;
On enemy collision with bullet enemyHealth--;
On draw enemy
- Code: Select all
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.