Game Development Community

Issues some behaviors with version 1.3.1 iPhone

by Dave Rushton · in iTorque 2D · 02/04/2010 (10:30 pm) · 2 replies

I have any issue with getting behaviors to work in the right order. In the platformerCameraBehavior taken from the platformer tutorial, I set the target on a t2dSpriteObject. When the level.t2d is loaded it creates a new instance of that object. It also updates the behaviors associated with that level and creates instances of behaviors based on all of that information.
In version 1.3 beta, this code ran perfectly on the iPhone. I have changed nothing at all and it won't run. It doesn't run because the object is not being created before the behavior tries to use it. I get the unable to find object code. This is definitely a Torque issue as it worked before and I didn't change anything. I have compared all of the settings on the targets as well as info.plist for both.
I think version 1.3.1 is a huge leap forward for the engine. There are tons of improvements here. My problem is that if I can't show the build running by Monday I am being forced to switch to Unity with our whole line of games. Please let me know if someone has a fix for this. I have spent many hours with the debugger to track everything down to the point where I know where the problem was.

#1
02/06/2010 (6:05 pm)
Do you know of a way to add behaviors in script? I'm not aware of how to do this, but if there is a way to do that, you could simply create the object in script, and then assign the behavior to it.
#2
02/09/2010 (10:50 am)
BTW if your in a hurry for a resolution you might not want to hold your breath. This problem has been known for over 6 months. Here's one of the original threads about it ( I reported it before this thread but this one has the most useful information on it), maybe it will help you find a work around until the new source basis for iT2D is released:
http://www.torquepowered.com/community/forums/viewthread/96727/