Playing two sequences simultaneously
by TigerHeros · in Torque 3D Professional · 04/28/2010 (4:20 am) · 5 replies
Hi,
%player.animate("celrocky");
%player.animate("root");
When I use this code, only the last animation is being loaded without loading the previous one.
I need to complete first animation then after that next animation has to be played.
Can anyone help me on this...
%player.animate("celrocky");
%player.animate("root");
When I use this code, only the last animation is being loaded without loading the previous one.
I need to complete first animation then after that next animation has to be played.
Can anyone help me on this...
About the author
#2
ShowTool will not load "celrocky" if the Orc is loaded so I guess that the animation does not work on it at all, and thus aint 'loading'.
Besides that, I seem to recall that I have read that you cannot play 2+ animations at the same time if they include the same nodes. And thats why armthreads are done without tampering with body/leg nodes at all.
05/04/2010 (1:37 am)
Are you using this on Gideon, or on the Orc?ShowTool will not load "celrocky" if the Orc is loaded so I guess that the animation does not work on it at all, and thus aint 'loading'.
Besides that, I seem to recall that I have read that you cannot play 2+ animations at the same time if they include the same nodes. And thats why armthreads are done without tampering with body/leg nodes at all.
#3
05/10/2010 (1:52 am)
I tried .. but still not working for me.. Can u tell me where should I write those playThread and animate functions..
#4
05/14/2010 (7:55 am)
Quote:Can u tell me where should I write those playThread and animate functions..Nope, I havent a clue. Best advise from me is to read all you can find using search.
#5
I found it... we can use schedule between each animations...
%player.schedule(%time,"celdance");
05/20/2010 (11:44 pm)
Hi..I found it... we can use schedule between each animations...
%player.schedule(%time,"celdance");
Associate Chris Robertson
To play the second sequence only after the first has completed, you only need 1 thread, but you need to trigger on the completion of the first sequence:
%player.animate("celrocky"); ... function MyPlayerData::onEndSequence(%this, %obj, %slot) { %obj.animate("root"); }Note that the onEndSequence callback is only invoked at the end of non-cyclic sequences. Replace MyPlayerData with the name of your PlayerData datablock as needed.