moving one frame thing only

Posted:
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?

Posted:
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);
}


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

Posted:
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.