Game Development Community

Reference to scenegraph

by USC - IMD student 2 · in Torque Game Builder · 07/24/2006 (4:47 pm) · 6 replies

Is there some global variable that I can use to reference the scenegraph? or is there some code that I can use to get a reference to the scenegraph?

#1
07/24/2006 (6:55 pm)
Go into the Level Builder and go under the Project tab. There click on the first thing, which should be the scenegraph. From there click on the Edit tab and then the Scene Graph Scripting sub tab. Enter in whatever name you want. You can use the name to easily reference whatever scenegraph you want.

I'm also interested that you are a "Student". Did you get Torque free? That would be pretty sweet!
#2
07/24/2006 (8:40 pm)
Yes, i got Torque2D from my school. i'm a student in the USC Interactive Media division, which teaches game design and development.
#3
07/25/2006 (6:17 am)
Sweet, so did you get it working?
#4
07/30/2006 (7:46 pm)
Yes i did, thanks
#5
07/31/2006 (4:12 pm)
You can also create references to the scenegraph on objects in your onLevelLoaded callbacks, since the scenegraph is passed to that function. Or you can get it from the scene window with the getSceneGraph function (the default scene window is named SceneWindow2d).
#6
07/31/2006 (6:23 pm)
@#2

Good!

@Thomas
That'd be very useful if you're loading multiple levels during the same sitting. Thanks