Page 1 of 1

enemy health

PostPosted: Mon Nov 12, 2007 7:50 pm
by toshiro
How do i give my enimies a specific range of health that reponds to my attacks so that after they are hit a few times they die instead of dying right away? :twisted:

Re: enemy health

PostPosted: Mon Nov 12, 2007 8:26 pm
by Troodon
Make a actor-variable called for example enemyHealth. Now set each enemy type a health in create actor.
Then add in their draw actor code the line that kills them when the enemyHealth is below zero. VoilĂ ! :D

Re: enemy health

PostPosted: Tue Nov 13, 2007 2:19 am
by toshiro
tekdino once again you save me severel headaches smh :? .........man i need to get better at this, thanks for all your help i added a point for you.

Re: enemy health

PostPosted: Tue Nov 13, 2007 4:30 am
by Troodon
You're welcome! :)