Game Development Community

1.7.2 - cloneWithBehaviors

by Mike Lilligreen · in Torque Game Builder · 03/16/2008 (2:32 pm) · 4 replies

This was detected with a t2dTrigger.

When copying a trigger via cloneWithBehaviors(), it does not copy the CollisionCircleSuperscribed = 0 value. All copied trigger collision circles are superscribed. Using clone() copies the superscribed value properly.

The obvious workaround right now is to set CollisionCircleSuperscribed to 0 after the object has been cloned.

#1
03/17/2008 (8:40 am)
Hi Mike, did you read my post about t2dTriggers at the top of this forum? It isn't related to the issue you mentioned above, but are you experiencing the same issue that I posted about?
#2
03/17/2008 (11:25 am)
Hi Bruno,

I just read your post and set up a trigger as you described. Everything works fine for me, I'm not experiencing your issue. Have you tried downloading 1.7.2 and testing it there?
#3
03/17/2008 (12:07 pm)
I've been putting off the upgrade to 1.7.2, but I'll probably do it sometime this week and let you know.
#4
03/17/2008 (5:48 pm)
Hi Mike, hate to keep hijacking your thread, but I just tried 1.7.2 and the same problem exists although I did figure out another clue:

It seems that the trigger can only have 1 object inside of the trigger area at once. When one object enters the trigger area it forces the trigger's onLeave callback for the previous object, before calling the onEnter call back for the new object. This happens eventhough both objects are still in the trigger area!

This doesn't sound right to me. I would think multiple objects can be in the trigger area at once, right?

Can you confirm this? If you want to post the reply in my other forum topic so that I don't keep hijacking your thread that would be awesome!