Torque Beginner Guide- First Line of Code
 
All right by programming tradition we have to make the words "hello world" appear on the screen before we start anything else. To do this start you game and press the ~ button. The ~ button is usually located on the top left of the keyboard. This will open the console from where we can program the game. Enter the following code into the console.

echo("Hello World");

echo() put whatever is in the () out to the console.
You can also output variables and but we will get to that later, and is extremely important for debugging. The ; tells the computer that the line of code is finished and it will move on to the next line of code. Also I would like to point out that TGB isn't case sensitive isn't case sensitive so all the following code means the same thing.

echo();
ECHO();
eCHO();
Echo();

Now that that tradition is over we can start doing something fun.
Next Page
Previous Page