Game Development Community

Newb Questions

by GRAV · in Torque X 2D · 02/23/2008 (7:42 am) · 11 replies

Okay, I've been reading tutorials, TXB documentation, and watching a few videos..

but all of them seem to be starting at a point where all the basics (object types, etc) have already been defined, and they're just showing how to assign materials to them. but I have no idea where these components are, or how I can use them in a new project.

basically I would really like to know how to assign an animation as a Player object that I will be able to move around the screen.
when I run the Starter Project, I have no components to choose from.

I'm also wondering how I actually run the game. I will throw a bunch of materials into the world and Run the game, and it is still the default Starter screen with the Garagegames logo, and nothing has changed.

In that default game you can move around the GarageGames logo with W,A,S,D, so I thought I could just copy that Material's player properties, but when I go to EDIT that material, it doesn't have any components assigned to it or anything.

So yea, very mysterious to me.. any help would be super

We are starting 2D games in Torque at my university but I would really like a head-start in testing out my animations.

#1
02/23/2008 (8:27 am)
I'm not sure I understand what you are saying. Which tutorials have you done so far?
#2
02/23/2008 (11:43 am)
I really highly recommend that you start off with Dan's Rainy Day tutorial. It does an incredible job of walking you through all the basics from beginning to end. You can download them from here...

Just to be completely clear, you need to work with two different tools to make a Torque X game... Torque X Builder and Microsoft Game Studio Express (Visual C# Express) 1.0. TXB is only the level designer that writes to a *.txscene whereas Game Studio Express is where you write your game code and compile.

From your post it sounds like there two things you need to be aware of. First, a new starter games is hardcoded to load the levelData.txscene file... and I'm guessing that you made a new level and then saved it as something_else.txscene - so, if you want the default code to load your level, you need to rename it to levelData.txscene (overwritting the existing level). Second, XNA requires all art to be compiled into binary using Game Studio Express. So, anytime that you add new art to TXB, you need to rebuild your project in Game Studio Express.

John K.
#3
02/25/2008 (2:18 pm)
When I click on starter game something pops up saying the stuff i need to run that template wasn't downloaded with the installation. How do i get the templates to work? The only one i can use is the empty one.
#4
02/27/2008 (6:03 pm)
Nevermind i figured it out.
#5
02/27/2008 (6:05 pm)
But i have another question when i go to test the game on torque x i click the play button and a error report pops up and it won't let me test the game. What should i do?
#6
02/27/2008 (9:44 pm)
Click the play button from Torque X Builder? You need to compile the game first using Game Studio Express. Once you have a working .exe, then the Torque X Builder play button should work normally.

John K.
#7
02/28/2008 (3:16 pm)
How do i compile the game? Where is the compile button/what do I click on?
#8
03/09/2008 (9:41 am)
Please reply people.
#9
03/09/2008 (10:42 am)
Hi Bob. Sorry, was on vacation. Let's start from the very beginning, just to make sure we're all on the same page.

To make a Torque X game, you need to work with two different programs: Microsoft Visual C# Express and Torque X Builder. Visual C# interacts with the source code and is the environment where you write your game code in C# and then compile into the binary file that runs. Torque X Builder is the GarageGames program where you create your level files that are loaded and played.

To create a Torque X game, start by running Visual C# Express. Select File + New Project. In the New Project template, select the StarterGame 2D project template. After everything finishes loading Press the F5 button to compile and run your game.

Next, open Torque X Builder. Select the Open Project big button and browse to your game's folder. Select the Game.txproj file (may have a different name, but will end in .txproj). This will open your game's project file into Torque X Builder. Next, within Torque X Builder, select File + Open Scene from the menu and choose the levelData.txscecne file within your game's folder. You should now see an empty scene with the GG logo in the center.

Now, you can start editing your level by adding graphics and laying out the scene. Remember... everytime you add some graphics files to your scene in Torque X Builder, you need to go back to Visual C# and re-compile the game code by pressing the F5 button, which is mapped to the Build + Build Solution menu option.

I hope this makes everything a little more clear.

John K.
#10
03/13/2008 (5:50 pm)
Thanks alot you really are helping alot i ow you one. When i clicked on F5 somthing poped up and said (Could not find a Direct3D device that has a Direct3D9-level driver and supports pixel shader 1.1 or greater.) Does this mean i have to install somthing else. And again I really aprectiate it.
#11
03/13/2008 (9:59 pm)
Hmmm... this could be a couple things. For starters, you'll need to have Direct X 9c installed. You also need to have a video card with pixel shader support. Older video cards may not work out.

John K.