Calling the t2dSceneGraph in TGB 1.1 Beta 2.
by Chris Serino · in Torque Game Builder · 04/03/2006 (4:05 pm) · 3 replies
How can I reference the scenegraph in the latest beta? Before, in the setupT2DScene function, there would be a t2dSceneGraph created. But now, it has been replaced with the startGame function, and there is no reference to the scenegraph anymore. How do I reference the scenegraph now? I need to call pickPoint on it.
About the author
Torque 3D Owner Matthew Langley
Torque
like this
function startGame(%level) { // Set The GUI. Canvas.setContent(mainScreenGui); Canvas.setCursor(DefaultCursor); moveMap.push(); %sceneGraph = sceneWindow2D.loadLevel(%level); echo("sceneGraph = " @ %sceneGraph); }