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.
-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.
#2
function FishClass::onLevelLoaded(%this, %scenegraph)
{
%this.setLinearVelocityX(20);
}
Where exactly in the game scripts notepad do I put this to get it to work?
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
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.
08/11/2012 (1:42 am)
You put this at the end of your game.cs file, read carefullyQuote: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.
Vlad I
Default Studio Name
Second, try better explanation of your problems.
Part of your script code, a video, picture.
I tried something to do something doesn't ring the bell.