Missing a Behavior Field in Editor.
by rennie moffat · in Torque Game Builder · 10/27/2009 (5:55 pm) · 2 replies
I have made this code, but it continually will not show my SpacerBackward in my behaviors window. What gives?
if (!isObject(SpacerTronicsControls))
{
%template = new BehaviorTemplate(SpacerTronicsControls);
%template.friendlyName = "SpacerTronicsControls";
%template.behaviorType = "Input";
%template.description = "Spacer Tronics Controls";
%template.addBehaviorField(SpacerLeft, "Turn Spacer Left", keyboard, "left");
%template.addBehaviorField(SpacerRight, "Turn Spacer Right", keyboard, "right");
%template.addBehaviorField(SpacerForward, "Apply Positive force vector", keyboard, "up");
%template.addBehaviorField(SpacerBackward, "Apply Negative force vector", keyboard, "down");
%template.addBehaviorField(PositiveVelocity, "Vector controling posVel", float, -25);
%temlpate.addBehaviorField(NegativeVelocity, "Vector controling NegVel", float, 25);
%template.addBehaviorField(RotateLeft, "Rotation/Turn Speed Left", float, -25);
%template.addBehaviorField(RotateRight, "Rotation/Turn Speed Right", float, 25);
}About the author
My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.
Torque Owner Zilla