Health

belleechbelleech Member Posts: 34
edited November -1 in Working with GS (Mac)
Hi Guys,

On games like Tower defense where you spawn multiple enemies of the same type. How do you reference the health for each identical enemies? The problem is I think when you reference Enemy_A to Enemy_A_Health and that gets damaged, the other identical enemies will get damaged as well right? Im stuck on this one.

Comments

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    You need to make a health/damage attribute for each individual enemy. Or not have 2 of the same enemy spawned at the same time.
Sign In or Register to comment.