Game Development Community

Getting started

by James DeBeck · in Torque Game Builder · 08/10/2012 (12:32 pm) · 3 replies

I'm having trouble getting started with Torque, so far I've bought "Torque 2D", and a platform engine.
-Example: I tried going through the fish demo tutorial, and it says to put something at the end of the script, I've tried to but I don't know what it means, anyways, fish demo didn't work out for me.

Where and how can I get started? I'd like to eventually make some platform games with ramps, ladders, ropes, power ups, upgrades, etc.

About the author

Recent Threads


#1
08/10/2012 (1:11 pm)
As we all did you get started by going through the tutorials thus get accustomed with the product you bought.
Second, try better explanation of your problems.
Part of your script code, a video, picture.

Quote:I tried going through the fish demo tutorial, and it says to put something at the end of the script, I've tried to but I don't know what it means, anyways, fish demo didn't work out for me.
I tried something to do something doesn't ring the bell.
#2
08/10/2012 (10:54 pm)
Game Tutorials: Fish Tutorials, chapter 4 making our fish swim:

function FishClass::onLevelLoaded(%this, %scenegraph)
{
%this.setLinearVelocityX(20);
}


Where exactly in the game scripts notepad do I put this to get it to work?
#3
08/11/2012 (1:42 am)
You put this at the end of your game.cs file, read carefully
Quote:Add this function to the end of your game.cs file (right after the end of the endGame function

Make sure you set your fish sprite/object class to FishClass in the TGB editor by adding a new field.

When you have a problem running the game call the console ~ to see if it shows any problems, very usefull.