Game Development Community

Could someone help me?

by Robert Carroll · in Game Design and Creative Issues · 08/10/2009 (1:19 am) · 6 replies

First off im a noob in TGB so could some one help me by making or finding a Basic aim and shoot behavior and then a kill behavior for the shooting behavior. And one other thing I cant get Gamescripts to work ive tried like 50 times and even opened a sample project that wouldnt work with Gs's

#1
08/10/2009 (9:05 am)
The Behavior Playground and Behavior Shooter projects ship with these behaviors you are describing.
#2
08/10/2009 (12:49 pm)
Sorry Im a noob i didnt get what u ment.
#3
08/10/2009 (1:01 pm)
If you downloaded TGB, there are sample games/projects you can open through the editor. These demos provide you with sample art and code. Look in your TGB/games directory. Find a sample project, such as BehaviorShooter. Open that folder, then project.t2dproj.

This will automatically load the game in TGB, and allow you to edit stuff and test it out. You can also find the sample behaviors you are looking for in those directories.
#4
08/10/2009 (1:21 pm)
I got the Demo vertion from a CD that came with a Game building guide to Basic 2D game's. It has some sample game scripts but i cant get them to work.
#5
08/10/2009 (1:33 pm)
I Need somthing that can mount onto my tank. Here:http://i707.photobucket.com/albums/ww73/RcBaseball13/TankGame.png
[IMG]http://i707.photobucket.com/albums/ww73/RcBaseball13/TankGame.png[/IMG]
#6
08/14/2009 (11:39 am)
You need to execute any game scripts that you use. Open up your "Game.cs" file in the "gamescripts" folder, and within the brackets under the line that says "Function startGame(%level)", add the following line:
exec("./<file>.cs");
Replace <file> with the name of the script you wish to use, you can add more exec lines for each game script you wish to use.

As far as behaviors, those can be applied directly to objects within the level builder, under the "edit" tab. I would suggest you look at the documentation here: http://www.garagegames.com/documentation/tgb