exiting animation loop

Blitz3D Forums/Blitz3D Programming/exiting animation loop

increasing the tween value will make it worse.

I have it so the idle plays when you are not pressing any keys. I included walk code so you can see what i am doing


;walking forward

If KeyDown(200) And walkflag=False
MoveEntity p\entity,0,0,.2
If Animating(p\model)=p\walk
Animate p\model,3,.7,1 walkflag=True

EndIf
EndIf

If Not KeyDown(200) Then walkflag= False

;Idle

If Not Animating (p\model)

If Animating(p\model)=p\idle
Animate p\model,3,.2,2 ;this is the idle animation

EndIf
EndIf


I tried idle with flags and still is does the same thing.
idle loops, then plays the extra cycle when i break out of the loop by walking/jumping or whatever
it only happens with idle .