Game Development Community

Writing an animation script

by Thomas Shaw · in Torque Game Engine Advanced · 04/20/2007 (4:47 pm) · 0 replies

Ok, I feel like such a dumb-@ss for having to ask this, but here goes:

I can't seem to write a proper script to get my DTS static shapes to animate in TGEA. I have done searches and written the script a zillion different ways, but nothing seems to work and now I am thoroughly confused on the topic.

Soo.. If someone could download my dts file from here:

www.3drogue.com/misc.html

and write a script to make it animate and actually put it in the engine to confirm that it animates, that would be super helpful.... since I seem to be too dense to actually do it myself. PLus that way I can finally have an example that I know works.

Helpful info:
Here is the script I have now.

the animation sequence is called "ambient".

datablock TSShapeConstructor(gate_DTS)
{
baseShape = "~/data/shapes/gate/gate.dts";
sequence0 = "~/data/shapes/gate/ambient.dsq ambient";
};

datablock StaticShapeData(gateDB)
{
category = "gates";
shapeFile = "~/data/shapes/gate/gate.dts";
};

gate.playThread(0, "ambient");