enemy lives??

1timmy31timmy3 Member Posts: 20
edited November -1 in Working with GS (Mac)
can you put lives on a enemy?

Comments

  • PhoticsPhotics Member Posts: 4,172
    You can give an enemy a health bar.

    You could also spawn an enemy and use a counter to limit the number of spawns to a set number. You could also use an attribute... and then monitor that attribute... to keep the number of that enemy limited to 1.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    rather than create a game attribute, you can give an attribute for the enemy within the actor itself. Then you just create a rule that says when self.enemy ...... as opposed to a game.enemy ... that way if you have multiples of them they all have a set life
Sign In or Register to comment.