First Behavior Tutorial

This video will take you through the steps of creating your first behavior in Torque Script. The behavior you make is an effect that scales an object in a pulsing movement which can be used for a power up. Enjoy!

Behavior Template
if (!isObject(PowerUpBehavior))
{
%template = new BehaviorTemplate(PowerUpBehavior);
%template.friendlyName = "Power Up (Scale)";
%template.behaviorType = "Effect";
%template.description = "Scales an object between two bounds";

//put your new behavior fields here.
//%template.addBehaviorField(Test, "Description", float, 0);
}


 

Quick Dev Resources

Absolute Beginner's Guide

Torque Game Builder Tutorials

Graphics Tutorials

Audio Tutorials

 

Powerful TGB Resources

Torque Script Interactive Tutorial

Sync Reloaded and Hands on Coding Guide

Copywrite Making Indie Games 2010