enemy health

You must understand the Game Editor concepts, before post here.

enemy health

Postby toshiro » Mon Nov 12, 2007 7:50 pm

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:
Upcoming projects: Twilight sKys 15% done, est. release Jan 1st
User avatar
toshiro
 
Posts: 22
Joined: Mon Nov 12, 2007 2:22 pm
Score: 0 Give a positive score

Re: enemy health

Postby Troodon » Mon Nov 12, 2007 8:26 pm

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
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: enemy health

Postby toshiro » Tue Nov 13, 2007 2:19 am

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.
Upcoming projects: Twilight sKys 15% done, est. release Jan 1st
User avatar
toshiro
 
Posts: 22
Joined: Mon Nov 12, 2007 2:22 pm
Score: 0 Give a positive score

Re: enemy health

Postby Troodon » Tue Nov 13, 2007 4:30 am

You're welcome! :)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest