Pure Script vs Stacked Behaviors
by Matt Pearson · in Torque Game Builder · 05/25/2009 (9:35 pm) · 6 replies
Do you guys like to start projects from scratch with plain script?
or
Stacking Behaviors until you have a sound prototype to expand?
or
Stacking Behaviors until you have a sound prototype to expand?
About the author
#2
I have removed nearly all the behaviours from my code now.
05/26/2009 (7:21 am)
I started out using behaviours, but quickly moved to using script. This was because I found it easier to think in terms of Datablocks and Object Oriented simulation. I create datablocks for everything in my game, and assign classes in the datablock. I then use event handling callbacks in script to do the work.I have removed nearly all the behaviours from my code now.
#3
05/26/2009 (9:42 am)
I lvoe the behaviour approach the most.
#4
05/26/2009 (10:13 am)
i mostly go the script way... i tend to recycle some code from older projects, but i tend to start my projects from scratch and barely use any behaviours.
#5
My advice is only use behaviors if you need multiple objects to do something similiar. Such as enemies...
05/26/2009 (11:54 am)
I don't use behaviors UNLESS there is another behavior out there that already does what I want.My advice is only use behaviors if you need multiple objects to do something similiar. Such as enemies...
#6
i dont know. behaviours its a really good addition to TGB, but you need to get used to them, and so far, im not really into them. but they sure are usefull.
05/26/2009 (9:33 pm)
and even then, i stick to scripts... i use to code the functions for, say, enemy attacks, and all i do is on the editor give the enemy its parameters on the level (class and any other needed parameter), so whenever i launch the level on the game, if the parameters are ok, they will all act as programmed on its base class functions and stuff.i dont know. behaviours its a really good addition to TGB, but you need to get used to them, and so far, im not really into them. but they sure are usefull.
Torque 3D Owner Drethon