Item animations.
by Maddermadcat · in Torque Game Engine · 01/21/2007 (12:44 pm) · 1 replies
This is a rather simple question, I think... How can I get my items to play their root animations instead of just spinning?
About the author
by Maddermadcat · in Torque Game Engine · 01/21/2007 (12:44 pm) · 1 replies
Torque Owner Tim Heldna
//------------------------------------------------------------- //Thread Animation Commands //------------------------------------------------------------- %item.playThread(0,"Anim"); //play the animation %item.stopThread(0,"Anim"); //stop the animation %item.pauseThread(0,"Anim"); //pause the animation %item.setThreadDir("Anim",1); //set animation direction forward %item.setThreadDir("Anim",0); //set animation direction backward%item = item to play animation onAnim = name of the animation
Set the "Rotate" field of the item to false to stop it rotating.