Character Animation Help

Blitz3D Forums/Blitz3D Programming/Character Animation Help

Rogue Vector(Posted 2005) [#1]
I'm having some frustrating problems with regard to controlling an MD2 character's animation sequences.

The big problem seems to be with the jump animation.

Can anyone help?

My code looks like this:
;Called every frame

Function UpdateCharacter(model)
   
   currentanimframe = MD2AnimateTime(model)

   Select(True)
 
      Case (KeyHit(57))   : If (currentanimframe < 67) Or (currentanimframe > 72) AnimateMD2 model, 3, 0.1, 67, 72, 2 ;JUMP ANIMATION (SPACE BAR)

      Case (KeyDown(200)) : If (currentanimframe < 40) Or (currentanimframe > 46) AnimateMD2 model, 1, 0.1, 40, 46, 2 ;RUN ANIMATION (FORWARD ARROW)

      Default   :    If (currentanimframe > 40) AnimateMD2 model, 1, 0.1, 0, 40, 2 ;DEFAULT IDLE ANIMATION

   End Select

End Function



The run animation triggers fine, but the jump anim doesn't.

I've used KeyHit() for jump and KeyDown() for run.

I think it might have something to do with this.

Rogue Vector


semar(Posted 2005) [#2]
I've already answered you in the previous post:
http://www.blitzbasic.com/Community/posts.php?topic=46971

you don't need to spread the forum with the same question.

Sergio.