Page 1 of 1

get AnimIndex of another actor

PostPosted: Sat Jul 02, 2011 10:42 pm
by Insomniac
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... :?:

Re: get AnimIndex of another actor

PostPosted: Sat Jul 02, 2011 11:07 pm
by schnellboot
do you really need getAnimIndex?
because u can do with animindex
for example
Code: Select all
if(player.animindex == 3)

Re: get AnimIndex of another actor

PostPosted: Sat Jul 02, 2011 11:46 pm
by Insomniac
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);
}