Game Development Community

startGame( expandFilename($Project::Game::DefaultScene) );

by rennie moffat · in Torque Game Builder · 06/19/2010 (8:13 am) · 3 replies

Hi guys, just a little TGB help for iTGB as the boards are a little busier over here, hopefully this is not a problem, but me, a rookie programmer, I do not know how to specify what my defaultScene is with this line, which is native in iTGB main.cs

startGame( expandFilename($Project::Game::DefaultScene) );


This line takes me to the defaultScene (that is preloaded in iTGB) emptyLevel.t2d.

What if I want it to be level338AlphaT.t2d?



About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.


#1
06/19/2010 (10:25 am)
You can simply replace "$Project::Game::DefaultScene" with "ThisProject/level338AlphaT.t2d". It will load that specific scene every time. I keep the original in case I need to get to a particular scene for testing.
#2
06/19/2010 (11:29 am)
no luck.
I used
startGame( expandFilename("~/data/levels/loadingScreen.t2d") );


and still just a black screen. loadingScreen.t2d is the correct file name.


:::?
#3
06/19/2010 (10:41 pm)
try
startGame( expandFilename("game/data/levels/loadingScreen.t2d") );