Game Development Community

Walk / Run not working?

by Syllus · in Torque Game Engine Advanced · 04/29/2008 (8:17 pm) · 2 replies

I have looked around the forums and the general report seems to be that the engine handles the walk or run animation selection based on movement speed. Meaning that if you slow the character down enough it should switch from the run animation to the walk animation and vice versa. However this does not seem to be the case as no matter what speed i have set for the maxforwardspeed or what speed i set the "setMoveSpeed()" to, it always plays the run animation.

Anyone know why it is never playing the walk animation?

#1
04/30/2008 (1:50 am)
Hi Syllus.


The default engine (player-object) does not have separate animation for walking and running, it simply has on animation for forward movement which is played at different speeds based on your forward velocity.

Adding an extra walk animation sequence to switch over to while forward speed is low enough shouldn't be too hard once you get familiar with the player-class -- and of course know the basics of C++
#2
04/30/2008 (6:43 am)
Ok thanks, adding an animation isn't tha tmuch of a problem, the problem lie inthe fact that from what I was reading people were saying that it was already in there, so I thought that I was just not doing something right and it wasn't working. Thanks.