Order of Events Calls of Object Behaviors
by Frédérick Imbeault · in Torsion · 06/22/2010 (9:17 am) · 0 replies
Hello,
I got a project in Torque2D and some objects got multiple behaviors attached to them. Now I wanted to know if there is some way I could know or set the ordre of event calls in theses behaviors. For exemple, 2 or more behaviors got a OnMouseDown function and I would need to call some behavior first... Does it call in the order in wich the behaviors are added to the object ?
Thanks !
I got a project in Torque2D and some objects got multiple behaviors attached to them. Now I wanted to know if there is some way I could know or set the ordre of event calls in theses behaviors. For exemple, 2 or more behaviors got a OnMouseDown function and I would need to call some behavior first... Does it call in the order in wich the behaviors are added to the object ?
Thanks !