Controlling animation sequence via scripting!
by Frederic "Intruder" Tessier · in Torque Game Engine · 03/11/2003 (4:47 pm) · 3 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.
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.
#2
%obj.setThreadDir(0,false);
%obj.playThread(0,"build");
EXACT same results as:
%obj.setThreadDir(0,true);
%obj.playThread(0,"build");
In console with a 'dump()' of the object, I see:
setThreadDir() - (int slot, bool isForward)
Why won't my animation play backwards?????!!!!
06/16/2010 (2:03 pm)
I know this is an old thread, but I'm trying to get an animation on a simple staticShape to play in reverse and it simply won't work...%obj.setThreadDir(0,false);
%obj.playThread(0,"build");
EXACT same results as:
%obj.setThreadDir(0,true);
%obj.playThread(0,"build");
In console with a 'dump()' of the object, I see:
setThreadDir() - (int slot, bool isForward)
Why won't my animation play backwards?????!!!!
#3
06/16/2010 (2:07 pm)
I think I see the issue... It wants to play the animation all the way to the end, then reverse it WHILE still playing.... This is retarded... I want the animation to start out "completed" and THEN play backwards... DUH!!
Torque 3D Owner Keith Killilea
I havn't found out how to scale/change the speed of animations yet although I'm currently trying to find out.