function ChangeAnimIndex() & DIRECTION by number
Posted: Fri Aug 01, 2008 4:43 am
In response to a call in the request forum
simple version - changes the animation using the indexnumber - PLUS UPDATED VERSION IN LAST POST (includes direction)
must be used in the event(s) of the actor being changed.
to use
ChangeAnim(var); //where var is the index number of the animation
or
ChangeAnim(6); //changes to animation index 6
more complex version next...
simple version - changes the animation using the indexnumber - PLUS UPDATED VERSION IN LAST POST (includes direction)
void ChangeAnim(int anim)
{
char *temp=getAnimName(anim);
ChangeAnimation("Event Actor",temp,NO_CHANGE);
}
must be used in the event(s) of the actor being changed.
to use
ChangeAnim(var); //where var is the index number of the animation
or
ChangeAnim(6); //changes to animation index 6
more complex version next...