Increasing an actor's animation index

Game Editor comments and discussion.

Increasing an actor's animation index

Postby y9kdude » Wed Dec 20, 2006 5:56 am

is there any way to increase an actor's animation index (animindex)? When I do "animindex++", this does not work for some reason. I believe this is because the actor is not getting redrawn. In any case, TheChangeAnimation function requries the name of the animation, but theoretically speaking, what if I do not know the name of the animation? Is it possible just to increase the animation index without using the ChangeAnimation function?

Thanks,
y9kdude
y9kdude
 
Posts: 13
Joined: Mon Dec 18, 2006 7:52 am
Score: 0 Give a positive score

Postby makslane » Wed Dec 20, 2006 11:46 am

The animindex variable is read onlly.
You can use the getAnimName function to get the animation name:
http://game-editor.com/docs/script_refe ... etanimname
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron