Page 1 of 1

moving one frame thing only

PostPosted: Wed Feb 28, 2007 3:27 pm
by Caaz Games
is there a way to have an animation move only one frame and then stop again?

PostPosted: Wed Feb 28, 2007 7:55 pm
by Sgt. Sparky
make a var called LastAnim,
when a key or event activates the anim change:
Code: Select all
Anim = animpos;
ChangeAnimationDirection("Event Actor", FORWARD);
if(animpos > Anim)
{
    ChangeAnimationDirection("Event Actor", STOPPED);
}

:D

PostPosted: Thu Mar 01, 2007 12:00 am
by DilloDude
Or if your animation is stopped, use
Code: Select all
animpos ++;

PostPosted: Thu Mar 01, 2007 3:30 am
by Fuzzy
Actually, Dillo's works best. the other solution is not guarrenteed to only change one frame. It may be fine for some applications though.

PostPosted: Thu Mar 01, 2007 2:27 pm
by Caaz Games
Ok Thanks for the help! :D