Hello,
This is the way I do it I hope it helps.
In the start of the loop i put
anim=1 then when you push the up key I move the character and have declare
Anim=2if upkey()=1 and keyres=0 then x#=newxvalue(x#,a#,5) : z#=newzvalue(z#,a#,5) : Anim=2
. Then somewhere in the loop I put this:
IF anim<>oldanim
IF anim=1
SET OBJECT FRAME 1,0.0
LOOP OBJECT 1,0,20
SET OBJECT SPEED 1,5
ENDIF
IF anim=2
SET OBJECT FRAME 1,55
LOOP OBJECT 1,55,75
SET OBJECT SPEED 1,20
ENDIF
oldanim=anim
ENDIF
The numbers depend on the model and personal preference. Hope it helps.