Game Development Community

T2D noob questions.

by Bruno Grieco · in Torque Game Builder · 03/22/2006 (11:14 am) · 1 replies

Guys,

Some doubts about the 2D tutorial that shipped with the engine :


1) The setupT2DScene function doesn't seem to be called by no one. The tutorial says nothing about it. Since I have some experience with TGE, I hooked a call for it in startGame function (game.cs). Is that OK or is setup2Dscene supposed to be a default callback that just don't get called ?

2) The Level Builder doesn't seem to recompile scripts if there's no .DSO. Every time I modify game.cs, I have to quit TGB and reload so the script is compiled. Sometimes I have to make sure to delete the old .DSO in order to commit the new code. Is that how it's supposed to be ?

3) How to run the tutorial code directly w/o loading TGB interface ?

4) My game won't use a scrolling TileMap as a BG, it's a maze like pac-man's. So where is the default background defined so I can change it ?

Thanks,

P.S. I know I'm a noob on T2D and I'll basically find all this by RTFM, but any help in this jump start would be great.

#1
03/22/2006 (11:42 am)
1.)
If you start to trace the toggleEditor() (or whatever it is called... not by my dev box atm), you will trace it to where it will call your setupT2DScene. I thought the same thing.

If you wish to get rid of the editor completely, and just start into the tutorial, then swap the toggleEditor() function with toggleT2DScene() and it will work fine.

3.) Look above :)

4.) it's defined in gui/menu.gui (or something similar). You can open it up in a text editor and change it from Image="something/logoBlack" to just something that is all black... or something.