Game Development Community

Triggers not working

by Robert DeMaria · in Artist Corner · 04/12/2006 (9:49 am) · 8 replies

I've made a simple set of placeholder animations for my player character so that I could write the script needed to respond to the dts trigger values. The animations work, but I haven't been able to detect any of the trigger values. I've double checked my script, and I don't think I've made a mistake there. The dsq files with the triggers are larger than the dsq files without triggers, so it's exporting something. I think I may have either found a bug in the exporter or a bug in Torque 2D. I don't have show tool pro, so I can't tell you what values that reports. If someone could post a simple dts file and an associated dsq file with triggers that they know should work, I could test it and see if Torque 2D detects the trigger values.

#1
04/12/2006 (10:25 am)
...
#2
04/12/2006 (10:36 am)
They should work
this chart says they are supported in blender

Here is a related forum post which should show you how to write the appropriate functions to recognize the triggers
#3
04/12/2006 (11:20 am)
...
#4
04/12/2006 (12:29 pm)
Oh, no, please, Joseph, do it ... :)

Keep up your great work.
#5
04/21/2006 (1:15 pm)
How is this progressing? I have a few tasks I can do before I really need this to work. But, fairly soon this functionality will become essential to the rest of my work.
#6
04/21/2006 (1:33 pm)
...
#7
05/12/2006 (10:30 pm)
I was having problems with the triggers not working either. I stepped through the code and could see they were being loaded but the method TSThread::animateTriggers() was never being called. I looked this up on the forums and I think I found the answer.

http://www.garagegames.com/mg/forums/result.thread.php?qt=12991

Basically, just saving the trigger as documented is not enough. The animation code also expects your bound object to have keyframes so that a required flag (TSThread::makePath) will be set.

Hope this helps
#8
05/15/2006 (11:14 am)
Thanks very much, this fixed the problem.