Enemy Health deduction

bhaktarajbhaktaraj Member, PRO Posts: 29
edited June 2013 in Working with GS (Mac)
I've an enemy. And what I want is when I hit the enemy two times. it should destroy.

Here is what i did. created two actor
integer actor: enemy health : value 10
integer actor: bullet hit count

And when the bullet hit the enemy I minus the "5" from the value.
and when the health become "0" I destroy the enemy.
but it is destroying all the enemy from the game and never spawning back the enemy.


"PLEASE HELP THANKING YOU GUYS IN ADVANCE"

Answers

  • yasoofxyasoofx Member Posts: 332
    this is a hard way. Dublicate same actor called it actor(2) then destroy actor (1) so There will still be Actor (2) lol
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    You should have a separate system spawning the enemies.
  • bhaktarajbhaktaraj Member, PRO Posts: 29
    Ya i do have a separate actor in the game spawning the enemy but the health is asign to main enemy actor so it is spawning from it.
    :(
Sign In or Register to comment.