Game Development Community

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.

#1
08/04/2010 (1:37 am)
game/scripts/behaviors

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?

#2
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.
#3
08/04/2010 (2:14 am)
I just wonder if there is some performance difference.