Game Development Community

Oversight or on purpose?

by Dave D · in Torque Game Builder · 02/01/2006 (6:51 am) · 3 replies

I just noticed that setupT2Dscene() never gets called. So yoour add custom code doesn't work. Mow I know it's not a big deal but just curious.

BTW I added setupT2DScene(); to the initializeGame function and All is well.

very happy with alpha4 so far.

#1
02/01/2006 (8:26 am)
With the addition of the level editor you can launch your game ( fire setupT2dScene ) from the launch menu.

- Jesse
#2
02/01/2006 (8:40 am)
Ahhhh, gotcha
#3
02/01/2006 (3:49 pm)
This was changed so when you want to launch code traditionally from setUpT2DScene() you do just as Jesse said, use the Run Game option... though if you are using the level editor you can just use the Test Level option and it will create a new window with your tested level without ever calling setupT2DScene();

Though keep in mind all of this is decided in script so you can remove the toggle to the level editor and call setUpT2DScene() in initalizeT2D.cs if you choose :)