Game Development Community

Can't get behaviors to work

by Nicolas Goulet · in iTorque 2D · 07/07/2010 (2:00 pm) · 7 replies

I went from the normal TGB to the ITGB and after fixing some stuff I have everything working except the behaviors. I'm using some behaviors from the old TGB Platformer Kit. I can add them, but the problem is that they just won't work!!!

I've been reading a lot about ITGB and in the new version there's hardly any reference to behaviors. So am I missing something? is it supposed to work in ITGB like it did in TGB?

It's a pretty big step back if my behaviors don't work as I've been working on them for a while now. Is there any fix for this? something I might be doing wrong? or just a workaround?

Thanks

#1
07/07/2010 (2:28 pm)
Nicolas, I don't use behaviors but have you got them in the ~/game/behaviors folder?
#2
07/07/2010 (2:44 pm)
Actually I have them in "gamescriptsbehaviors" and it seems to be the only way that I can get them displayed in TGB.

I added ControllerBehavior on my main character and when I compile with Torsion, it doesn't even go in "ControllerBehavior::onAddToScene". I also tried "ControllerBehavior::onBehaviorAdd" but still nothing.

Your help is greatly appreciated
#3
07/07/2010 (5:11 pm)
What happens if you copy them to ~/game/behaviors and then run?
#4
07/07/2010 (6:04 pm)
They don't appear in the TGB Behavior drop down list
#5
07/20/2010 (9:51 am)
I have same issue.
#6
07/20/2010 (9:56 am)
Copy behavior cs file to "~/game/scripts/behaviors/"
#7
07/20/2010 (12:11 pm)
I use "~/game/behaviors"