Game Development Community

Speed based run animation

by Derk Adams · in Artist Corner · 11/06/2004 (2:18 pm) · 2 replies

Greetings,

I am using Milkshape and the dts plus exporter. I have access to 3dsmax 4.2 and dts exporter if necessary (but would prefer to use Milkshape).

I am trying to figure out how to make a dts or dsq animation where the animation rate is scaled to the current speed. The default orc does this and I am trying to do it with my character. I am using a throttle system instead of the default on/off system and scaling the animation is important.

What do I have to do when I am creating the animation to get it to sync with the speed?

Thanks.

#1
11/08/2004 (4:20 pm)
The Orc runs forward about 30 frames a second. And according to the source code a "Forward Command" increments the the Orcs position +1 unit. (1 meter). So basically from that you can scale your animation from that. Back decrements the position -1 unit and side either adds or subtracts the sideways position 1 unit depending on direction.

If you find yourself needing more than that change the source code.
engine/game/Player.cc at line 122.

I am not sure about milkshape but MAX has an option to change yourframe rate on export in the exporter Dialog. Basically I would make sure you sure to export at 30 frames a second. Which is pretty standard for most modeling tools.

Hope that helps.
Matt
#2
11/09/2004 (6:47 am)
Matthew,

Thank you. I actually got the answer I was looking for at this post.

Thanks.