Game Development Community

Playing Character Animations backwards

by Kip Carr · in Torque Game Engine · 10/17/2006 (6:55 pm) · 1 replies

I am trying to play a character animation backwards. I have a animation that i call in script code using the playCelAnimation() function. This function then calls setActionThread(). There is no direction in this function to specify if you want to play the animation backwards. I modified the code to take a direction being a bool and pass that into the engine. I have ran debug and varified that it gets passed in and setActionThread() in the c++ code uses it. I even went all the way in to see that it sets the first frame of the animation as the last frame of the animation and visa versa to set it to be backwards.

Now comes the problem. It does nothing! I cant debug any further b/c the code is setting some threads up and if i try to set a break point in some animation code I always break b/c of the character idle/run/walk/etc animations. Can anyone help on me getting animations to play backwards?

Thanks!

#1
10/17/2006 (8:38 pm)
Hmm... well you can look at the code for the sidestepping animation, as that just plays the animation backwards when you move left. I don't remember there being anything in any of the default animation functions that does this, but I forget how the sidestepping code worked...