Game Development Community

Playin animations backwards?

by Ehrlich · in Torque Game Builder · 07/02/2007 (2:36 pm) · 3 replies

Hello there guys n gals.

i've been reading thru the docs again, tryin to find an answer to this question.

it happens that i have certain animation, that i need to play in the regular way, but sometimes, i want it to start from certain frame (which i know i can), BUT backwards too... but i didnt see any commands or modiffiers to do so, so im still wondering if its possible, and how?

does anyone know how?.

thank you very much in advance.

About the author

Computer Science Engineer, with interest in Graphicl Computing, unconventional I/O devices and Artificial Intelligence (for games)


#1
07/02/2007 (5:12 pm)
You could just create a new instance of the animation with the frames backwards instead of how they are supposed to be and tell that to play instead.
#2
07/02/2007 (7:20 pm)
I thought of that initially, but im looking for a method that just plays the animation backwards... if theres any, if not, then i already did what you suggested, since, like i said, that's the 1st thing i thought on when i faced that case.
#3
07/02/2007 (7:36 pm)
There is no simple 'play in reverse', however, you could probably write a quick script that reverse the frames in any animation and returns a new animation for you ... so you don't have to manually write reversal animations for everything in your game if you need a lot of them ...

Alternatively, you could tweak the 'playAnimation' method in the C++ class ... and write a 'playAnimationReverse' method using 'playAnimation' as a starting point