exiting animation loop

Blitz3D Forums/Blitz3D Programming/exiting animation loop

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

still no luck .whatever I do the frames just play out.
tried this:

If KeyDown(30) ; forward
SetAnimTime p\model ,45,2;(2 is the idle sequence)
If Animating(p\model)=p\walk
Animate p\model,3,.7,1
EndIf
MoveEntity p\entity,0,0,.3
EndIf

I wonder of its because i have the controls set like this:
If Animating(p\model)=p\walk
Animate p\model,3,.7,1
EndIf

normally to loop this sequence you would just have

Animate p\model,1,.7,1

Unfortunately

If keydown(30)
Animate p\model,1,.7,1
Move entity p\entity,0,0,1
EndIf

just makes the animation stick on the first frame
key hit would be better, but then I wouldn't move forward unless I kept hitting the key

In any case nothing seems to work.