get AnimIndex of another actor

Non-platform specific questions.

get AnimIndex of another actor

Postby Insomniac » Sat Jul 02, 2011 10:42 pm

I'm trying to figure out how to have an actor look at another actors animation & change its animation in accordance to what animation the other actor is currently on. I know how to do this within the same actor, just not another... :?:
Insomniac
 
Posts: 3
Joined: Sat Jul 02, 2011 5:45 am
Score: 0 Give a positive score

Re: get AnimIndex of another actor

Postby schnellboot » Sat Jul 02, 2011 11:07 pm

do you really need getAnimIndex?
because u can do with animindex
for example
Code: Select all
if(player.animindex == 3)
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: get AnimIndex of another actor

Postby Insomniac » Sat Jul 02, 2011 11:46 pm

thanks a lot that's exactly what I needed :D
O and just to clarify I didn't mean getAnimIndex of another actor I just meant monitor AnimIndex of another actor (using get AnimIndex in the title was just poor judgement on my part lol :P)

(How im using it, in case if someone else needs help with this. Just put your names over my dumb ones)
Code: Select all
if(paddle.animindex == 0)
{
    ChangeAnimation("ball", "green_ball", STOPPED);
}
else if(paddle.animindex ==1)
{
    ChangeAnimation("ball", "violet_ball", STOPPED);
}
Insomniac
 
Posts: 3
Joined: Sat Jul 02, 2011 5:45 am
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest