Game Development Community

Controlling animation sequence via scripting!

by Frederic "Intruder" Tessier · in Torque Game Engine · 03/12/2003 (12:47 am) · 1 replies

Hello folks!

Time has pass and i have another question. Is it possible from the script to change the playing speed of the animation, which frame to play and play in reverse?

I know i read in the Max2dts documentation in the animation section the following :

"In code, animations can be controlled to respond the player input, play in reverse, play at different speeds based on player input, and transition at different speeds and over varied lengths of time, again on a thread by thread basis."

This will be useufull to be able for example to accelerate the animation if the player move faster. Or to play only a certain number of frames. Or if the player go backward to play the animation in reverse.

Thanks for your collaboration in advance.

#1
09/22/2004 (10:38 am)
Reversing animations can be done through %obj.setThreadDir(thread,isForward); (eg %player.setThreadDir(0,false); ).

I havn't found out how to scale/change the speed of animations yet although I'm currently trying to find out.