Animation Triggers [Solved]
by David Horn · in Torque X 2D · 08/04/2009 (8:36 pm) · 0 replies
I have a dts loaded in and playing dsq files perfectly.
The problem is that I can't access the triggers within the dsq file
when I load the dts and dsq files, I have
shape.OnAnimationTrigger = OnAnimationTrigger;
Then I have a function:
But using the debug, the OnAnimationTrigger function is never called. I have a trigger within the begin end and set to 1.0
Any thoughts?
EDIT
I realized that you need to have keyframes on your bounds box or the triggers aren't exported.
The problem is that I can't access the triggers within the dsq file
when I load the dts and dsq files, I have
shape.OnAnimationTrigger = OnAnimationTrigger;
Then I have a function:
public void OnAnimationTrigger(int channel)
{
switch (channel)
{
case 1:
//do something code
break;
case 2:
// do something else code
break;
}
}But using the debug, the OnAnimationTrigger function is never called. I have a trigger within the begin end and set to 1.0
Any thoughts?
EDIT
I realized that you need to have keyframes on your bounds box or the triggers aren't exported.
About the author