Enemy health problems

Game Editor comments and discussion.

Enemy health problems

Postby jimmynewguy » Mon Dec 03, 2007 10:27 pm

In my game you are a knight. I want it to be where you swing you sword and the mage losses health, this would be easy, however the mage has clones so is there any way where its the colliding actor who losses health? Because right now when I attack a clone they have to die in order so 1 dies then 2 ext. Any help will be greatly appreciated. :D
Code: Select all
if(animindex == getAnimIndex("swingl_01") ||
   animindex == getAnimIndex("swingr_01"))
 
   {
    mage.healthe-=1;
   }
   
else
{
    PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1.000000, 1.000000, 0.000000, 1.000000);
}
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Enemy health problems

Postby Super Pieman » Tue Dec 04, 2007 1:50 am

put the script into the mage instead of the knight. that should work.
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score

Re: Enemy health problems

Postby jimmynewguy » Tue Dec 04, 2007 8:50 pm

no, that doesn't work. the knight can't hurt the mage unless his in his swing animations. is there some way to check if hes in these animations from the mages script? thx :D
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Enemy health problems

Postby Super Pieman » Tue Dec 04, 2007 9:48 pm

im not sure but have you tried putting "knight.swingl_01"
and same with right
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron