The anti- setActionThread?
by Northeastern University (#0001) · in Torque Game Engine · 03/29/2006 (11:21 pm) · 3 replies
To my knowledge, stopThread() is the opposite of playThread(). Does setActionThread() have an equivalent?
What I am trying to do is to get my player to get out of its looping eat cycle and return to its idle cycle. I've tried using playThread & stopThread...
I've generally had a better experience with setActionThread when it comes to playing cyclic animations, but is there a way to make them stop? If I had something like...
What I am trying to do is to get my player to get out of its looping eat cycle and return to its idle cycle. I've tried using playThread & stopThread...
$globalPlayer.playThread(0,"eat"); $globalPlayer.stopThread(0); $globalPlayer.playThread(1,"idle");...except that when I do so, 1) the eat cycle stops immediately after it is activated as if it zooms through all the animations, and 2) the idle cycle tries to play while I am running around the world after the whole sequence, as if the run animation is conflicting with the idle.
I've generally had a better experience with setActionThread when it comes to playing cyclic animations, but is there a way to make them stop? If I had something like...
function playerEat()
{
$globalPlayer.setActionThread(eat);
schedule(4000, 0, playerIdle, $globalPlayer);
}
function playerIdle()
{
$globalPlayer.setActionThread(idle);
}...the idle animation wouldn't even play. I figure trying to stop the eat animation within the playerIdle() would solve this problem. I also tried using $globalPlayer.stop(), but that didn't work either.
#2
03/16/2010 (9:27 am)
in 3dsmax or milkshape depending, there is a check box in the sequence that says cycle animation. if you uncheck that it will only play once
#3
This can be used to stop a forced cycled animation or provide a transition to another one,because the only animation that stops the playback to advance is NullAnimation.
03/21/2010 (11:58 pm)
setActionThread() with NullAnimation parameter will stop the current animation and will release the next in the loop (if there is).But this one eventually will work in c++ only.This can be used to stop a forced cycled animation or provide a transition to another one,because the only animation that stops the playback to advance is NullAnimation.
Torque Owner Claude-Alain Fournier
Weird.