Behaviors
TGB 1.5 introduces a system by which you can place 'Behaviors' on objects in your scene, or on your scenegraph. Behaviors are small bits of functionality that can be attached to a game object, and configured through the editor without opening a script file and typing a thing. The Behavior itself defines how an object reacts to certain events. They are modular, so you can add many Behaviors to an object, and/or the same Behavior to multiple objects. With Behaviors it is possible to create entire games without writing a single line of script or ever leaving the Torque Game Builder tool! For a great example of Behaviors being used to create a Breakout game and modeling some common gametype controls, see the BehaviorPlayground project that is included in the download.
Follow the link below for more information.TGB 1.5 introduces a system by which you can place 'Behaviors' on objects in your scene, or on your scenegraph. Behaviors are small bits of functionality that can be attached to a game object, and configured through the editor without opening a script file and typing a thing. The Behavior itself defines how an object reacts to certain events. They are modular, so you can add many Behaviors to an object, and/or the same Behavior to multiple objects. With Behaviors it is possible to create entire games without writing a single line of script or ever leaving the Torque Game Builder tool! For a great example of Behaviors being used to create a Breakout game and modeling some common gametype controls, see the BehaviorPlayground project that is included in the download.
Return to Full Article - InsideMacGames News

















