Game Development Community

Can't get tutorial graphics on Mac

by Kenneth Malone · in Torque Game Builder · 02/21/2006 (12:41 am) · 2 replies

HELP : (

I just purchased Torque 2D today along with Torque Game Engine SDK, Torque ShowTool Pro and Ragdoll Animation Pack. I am super frustrated because I can't get the very first graphic to appear in the Torque 2D Early Adopter - Basic Tutorial.

I'm running on a iMac G5 - Version 10.4.2.

Page 2 - I open the Application T2D-OSX and get to the T2D homepage.
Page 3 - I open "-/T2D/gameScripts/game.cs"
Note: The code in game.cs is different then the tutorial. In place of:

// Add custom game code here...

it has the following:

// Set the current camera position
sceneWindow2D.setCurrentCameraPosition("0 0 100 75");

Page 4 - Under the Loading images section it says:

Important Step - Go back to the example folder. Now go to the
spacescroller/client/images folder, and copy everything in there (a bunch of
pictures) over to our T2D/data/images folder.

There is no "spacescroller/client/images folder, but it appears they have already
been moved to the "T2D/data/images folder".
Next, I added the following script to "game.cs":

datablock t2dImageMapDatablock(playershipImageMap)
{
imageMode = full;
imageName = "-/data/images/playerShip";
};

Page 5 - I added the following script to "game.cs":

$player = new t2dStaticSprite() { scenegraph = t2dScene; };
$player.setPosition("-35 0");
$player.setSize( "14 7" );
$player.setImageMap( playershipImageMap );

On the T2D homepage I click on the Launch menu, then the "Run Game" option and
I get the Torque 2D Logo but no little spaceship.
I also tried the launch and run without the camera position code which is not in the
tutorial code.

Somebody, please help! I'm new to programming and I thought these engines would help me learn how to write and use the programming language.

#1
02/21/2006 (2:14 am)
I think your looking for the images in the wrong place. They are in games/spacescroller/data/images with the games folder in whatever folder you installed T2D.

The tutorial has a couple of typos in it like that.
#2
02/21/2006 (6:55 pm)
You also have a typo in this line:

imageName = "-/data/images/playerShip";

...you are using a minus sign, when it should be a tilde immediately after the first quote.