Game Development Community

Trouble locating setupT2DScene() in the T2D folder

by Jackie Williams Jr · in Torque Game Builder · 05/21/2006 (6:54 pm) · 2 replies

Hey all,

I've started following the Basic tutorial that came with the T2D SDK. It tells me to open up the "game.cs" file inside the T2D/gameScripts folder. Once I open that up, it says there's a function called
setupT2DScene(), but the only functions in the file are startGame() and endGame().

Am I missing something, or did something change?

About the author

Recent Threads


#1
05/22/2006 (12:35 pm)
As an absolute TGB newbie, I ran into the same problem. I "fixed" this by manually creating the setupT2DScene() function, and calling it in the startGame() function, all in the game.cs file. This worked - I can load my game via the editor, having to press "Start game".
It's probably not the right way to do this, but it did work for me.
So - I'm off to discover how this TGB editor works..
#2
05/22/2006 (2:12 pm)
Check out the latest version of the TGB basic tutorial on TDN... also the Fish Demo (and then the Fish Game tutorial) tutorial is a very good way to start :)