Killing all Clones
Posted: Thu May 24, 2012 5:52 pm
Hi,
Pretty simple question here, and am having trouble finding it on forum. I'm cloning a common enemy in a sidescrolling platform game. I'm using a Collision and DestroyActor on the enemy when he is hit with a bullet. However, this obviously ends up destroying all of the clones, when I just want the bullet to kill that specific clone. Is there a code I can add to the DestroyActor or Collision that can do this? Some kind of "untether from other clones" button or script? Otherwise I would have to add a new Actor, import graphics and scripts over and over again for each of this type of enemy (which is tedious).
Thanks!
666AppleStore
Pretty simple question here, and am having trouble finding it on forum. I'm cloning a common enemy in a sidescrolling platform game. I'm using a Collision and DestroyActor on the enemy when he is hit with a bullet. However, this obviously ends up destroying all of the clones, when I just want the bullet to kill that specific clone. Is there a code I can add to the DestroyActor or Collision that can do this? Some kind of "untether from other clones" button or script? Otherwise I would have to add a new Actor, import graphics and scripts over and over again for each of this type of enemy (which is tedious).
Thanks!
666AppleStore