Animation plays when I setDatablock()
by James Terry · in Torque Game Engine · 01/24/2007 (12:23 pm) · 2 replies
I have a set of shapes mounted to an object, when the object gets rotated, I want to keep the textures on this shape pointing up, so I have 4 rotations of the DTS file, mount_up, mount_down, mount_left, and mount_right.
Each of these mount shapes has an animation I play when that object gets selected. I have been using objectX.playThread(0,"Show") to show it, and objectX.playThread(0,"Hide") to hide it. I run into a problem when I set the datablock though, it plays the animation I last played on that object.
If no animations have been played on it, it doesn't flip. Any sort of fanagling with stopThread, pauseThread, and setThreadDirection hasn't helped to alleviate the problem.
Any help would be greatly appreciated in stopping this behavior.
Each of these mount shapes has an animation I play when that object gets selected. I have been using objectX.playThread(0,"Show") to show it, and objectX.playThread(0,"Hide") to hide it. I run into a problem when I set the datablock though, it plays the animation I last played on that object.
If no animations have been played on it, it doesn't flip. Any sort of fanagling with stopThread, pauseThread, and setThreadDirection hasn't helped to alleviate the problem.
Any help would be greatly appreciated in stopping this behavior.
#2
What I am trying to do is make it so that any rotation of the object, the mounted animations play by spinning from left to right with the show animation, and spin right to left with the hide animation, but whenever I set datablock to the updated orientation DTS file, it plays the animation
01/25/2007 (6:29 am)
The textures aren't moving. The Object can rotate around, and the objects mounted to it have animations in the DTS file, "Show" and "Hide"What I am trying to do is make it so that any rotation of the object, the mounted animations play by spinning from left to right with the show animation, and spin right to left with the hide animation, but whenever I set datablock to the updated orientation DTS file, it plays the animation
Torque Owner AllynMcelrath