Game Development Community

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?

#1
01/21/2007 (6:19 pm)
//-------------------------------------------------------------
//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 on
Anim = name of the animation

Set the "Rotate" field of the item to false to stop it rotating.