Problem playing an aniamtion
by Leslie Young · in Torque Game Engine Advanced · 07/06/2008 (7:56 am) · 3 replies
Can someone explain to me why this code won't play the waterfall animation?
Its from Apparatus content pack and I'm presuming its an animated texture.
According to ShowtoolPro the sequence is called "Sequence01" and is playing in showtool.
I am using TGEA1.7
Its from Apparatus content pack and I'm presuming its an animated texture.
According to ShowtoolPro the sequence is called "Sequence01" and is playing in showtool.
I am using TGEA1.7
datablock StaticShapeData(WaterfallAnimation)
{
category = "Effects";
className = "WaterfallEffects";
shapeFile = "~/data/shapes/particles/waterfall/waterfall.dts";
};
function WaterfallEffects::onAdd(%this, %obj)
{
error("I R CALLED"); // yes it gets in here
%obj.playThread(0, "Sequence01");
}About the author
#2
07/10/2008 (1:51 pm)
Cool. Thanks for confirming.
#3
07/17/2008 (5:59 am)
For those that want to animate something like a waterfall. Here's the material I use.new Material(MAT_EFFECTS_waterfall)
{
mapTo = "waterfall";
baseTex[0] = "waterfall";
translucent = true;
translucentZWrite = false;
translucentBlendOp = LerpAlpha;
//alphaRef = 64;
animFlags[0] = $scroll;
scrollDir[0] = "0 -1";
scrollSpeed[0] = 0.5;
};
Torque Owner Resana
Default Studio Name