md2 animation problem

Blitz3D Forums/Blitz3D Programming/md2 animation problem

stayne(Posted 2003) [#1]
hey there, pretty new to b3d. i successfully imported an old quake 2 model i made, and he's standing there idling from frames 0 - 39. what i want to do is press the up arrow key (200) and have his animation switch to frames 40 - 45. if i put the keydown statement in the main while loop, as long as i hold the up arrow down he sticks in the first animation loop (40) and then continues to stay in the 40 - 45 loop indefinately. where can i find some info on this? confusing heh, but addictive.

gracias


stayne(Posted 2003) [#2]
disregard... got it. now to figure out how to get him to move forward...

If KeyDown( 200 ) =1
If MD2AnimTime(alien) < 20 Then AnimateMD2 alien,1,0.1,40,45
Else
If MD2AnimTime(alien) > 40 And MD2AnimTime(alien) < 45 Then AnimateMD2 alien,1,0.1,1,20
EndIf