3 Replies Latest reply on Aug 4, 2009 11:48 PM by dalcde

    attacking

    dalcde Level 1

      I have made a game which you need to shoot fireballs to enemies. Once it hits the ground and explodes, the explosion reduces the enemies it hit. I want it to just reduce the enemies health once per enemy, but how do you write the code? There is a function in the enemy called reduceHealth(reduce). "reduce" is how much it reduces. If it is 10, the health is reduced by 10. The enemies are put in an array. Just call it yourArray?

      Please help!