Game Development Community

Unable to Load Behavior

by Destin Bales · in Torque Developer Network · 08/02/2010 (4:25 am) · 0 replies

Hello,

I'm new to Torquescript and am following along with the "Hands On Coding Guide" from makingindiegames.com. The example for learning behaviors has you write a script, PulsingGlow.cs, to illustrate the creation of a behavior. The lesson concludes with:

Quote:Save the file in the behaviors folder of your project. Open TGB and reload the project so the engine can recognize the new behavior file. Select your image that we created in a previous lesson and under the behaviors tab, click the green button to add the behavior to the object.

I'm currently using the free trial of TGB 2D version 1.7.5, and the behaviors folder is located in the game directory by default. \game\behaviors When I place PulsingGlow.cs in that folder and reload the editor, the behavior is not showing in the dropdown box.

Searching through the forums I found some posts where people were instructed to move the behaviors to \game\scripts\behaviors, and I tried that with no luck either. I even tried \game\gamescripts\behaviors.

What am I doing wrong? Is it possible that some typo in PulsingGlow.cs could cause me to not see the behavior in the editor? How can I test to load a behavior file?

Thanks in advance.