Where to put behaviors in iTGB 1.4?
by Richard Skala · in iTorque 2D · 08/04/2010 (1:24 am) · 3 replies
I just upgraded to iTGB 1.4, and I can't figure out where to put my Behavior/Component scripts. Where are they supposed to go now?
Previously, I put them in game/behaviors. That folder is no longer there, so I just created the folder and copied my old behavior files into there, and iTGB doesn't display them in the drop down menus any more.
Previously, I put them in game/behaviors. That folder is no longer there, so I just created the folder and copied my old behavior files into there, and iTGB doesn't display them in the drop down menus any more.
About the author
Founded in 2009, Pixel Vandals Inc. is focused on bringing fun, fresh, and new ideas to the iPhone. www.pixelvandals.com www.pixelvandals.com/vineking
#2
I prefer to assign the behaviors through the editor, as it's much easier, but I'm sure it's possible to add the behaviors dynamically during runtime, for example, by calling SimComponent::addComponent.
08/04/2010 (1:44 am)
Ah, excellent -- that works. Thank you!I prefer to assign the behaviors through the editor, as it's much easier, but I'm sure it's possible to add the behaviors dynamically during runtime, for example, by calling SimComponent::addComponent.
Torque 3D Owner Henry Shilling
Smokin Skull
This is the way you can see them with the editor. I have seen others apparently do the behaviors another way. They are not in the behaviors folder. they must assign the behaviors in code?