Manipulating .B3D character animations

Blitz3D Forums/Blitz3D Beginners Area/Manipulating .B3D character animations

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.

Hey guys,

I've been trying to get .B3D character animations to work properly for a few days and i'm having a lot of trouble.

Basically i'm using a Mario character (taken fron Sinu's great 3D Mario demo from a few years ago) and I simply want to use the idle state for when he's idle, the walk state for when the player moves the character etc.

The problem i'm having is when I move the character the animations stops. Here's an example of the code I wrote:

If CharX > 0.02 Then Animate Dude, 1, 0.46, 2, 12

If Not Animating (Dude) Then
    Animate Dude, 1, 0.46, 1, 12
End If


I'm also trying to control the animation speed by feeding the characters X speed into the animation speed variable but that just seems to freeze the animation entirely.

If anyone has tips or can spot what i'm doing wrong it would be very much appreciated :-)