Game Development Community

Player movement animations

by Ron Kirkland · in Torque Game Engine · 11/28/2007 (1:54 pm) · 2 replies

I have a custom player dts with several animation dsq files..

This is what I am experiencing: When my character runs forward with the referenced RUN animation, when I release the "W" (run forward key) the RUN animation sill is playing.

So... where should I trigger returning to an idle animation on the key release, or more generally...

What is the best method for controlling and triggering player animations?

Thanks

#1
12/07/2007 (10:03 pm)
These types of animations should be (and are, by default) handled in Player::pickActionAnimation(), in player.cc. The default setup is to return to idle when the velocity is less than 0.1 m/s.
#2
12/08/2007 (4:51 am)
Thanks, that will get me going. Appreciate the help