Behavior list
by Sebastian · in Torque Developer Network · 07/13/2007 (3:53 pm) · 4 replies
Well I just downloaded the Torque Game Builder trial a few hours ago and so far I've just been messing around with it but now I start following the tutorials that came with it. This is my first time using TGB. Anyways I'm following a tutorial that shows me how to create a simple "game" where a ball just flees from the mouse when you move close to it. In the tutorial it says that once I have my sprite selected I click on the edit tab and then the behavior one. From there I click on the drop down menu and there is a bunch of behaviors to choose from (obviously I'm supposed to use the "flee mouse" behavior"). The problem is that when I click on the drop down menu under the behavior tab there aren't any behaviors to choose from at all. What am I doing wrong? Or do I not have access to behaviors because it's the trail version?
Thanks in advance.
Thanks in advance.
#2
The tutorial you are speaking of expects you to be working within the "Behaviors Playground" project, which is why it doesn't mention the custom project step of copying the behaviors TorqueScript code that you want to use to your project.
The "stock behaviors" are located in the/games/BehaviorPlayground/game/behaviors directory (and subdirs of that directory).
07/13/2007 (7:20 pm)
Behaviors aren't "built in" to the engine (which is a good thing--you can select the ones you want, and add/remove from the project manually to keep your download size down, as well as modify as you wish).The tutorial you are speaking of expects you to be working within the "Behaviors Playground" project, which is why it doesn't mention the custom project step of copying the behaviors TorqueScript code that you want to use to your project.
The "stock behaviors" are located in the
#3
Thanks in advance.
Would where I'm saving it have anything to do with it? Because I'm saving it in the same folder as the Behavior Playground project folder.
07/13/2007 (8:20 pm)
Okay thanks for clearing that up. Now I have a different problem. I have the flee mouse behavior set to my sprite and all that and I've finished the tutorial, it just says to press play and try it out. Well when I press the play button the game come up as just a black screen with the cursor. Nothing else. I saved before I pushed play so again what did I do wrong?Thanks in advance.
Would where I'm saving it have anything to do with it? Because I'm saving it in the same folder as the Behavior Playground project folder.
#4
07/16/2007 (1:05 pm)
Hmm, it's possible. It should be saved to the levels folder. MyGames/Behavior Playground/game/data/levels. When you run the game, hit the ~ key to open the console. Do any red or grey errors/warnings show up?
Oliver Smith