Game Development Community

Airplane Tutorial

by Kent White · in Torque X 2D · 02/20/2008 (9:27 am) · 1 replies

I am trying to get through the airplane tutorial. The compiler gives an error message for the following two lines when trying to add the compass to the scene:

T2DSceneCamera InstrumentCam = T2DSceneGraph.Instance.DefaultCamera.Clone() as T2DSceneCamera;

InstrumentStyle.Anchor = AnchorFlags.All;

The T2DSceneGraph does not have an Instance method. For InstrumentStyle their is no Anchor property.

How do I get the compass anchored to the bottom right hand corner of the screen?

About the author

Recent Threads


#1
02/21/2008 (10:01 pm)
Hi Kent, the problem has to do with the multi-scene graph changes introduced in Torque X 1.5, and the Airplane tutorial hasn't been updated yet. Here's a quick pointer a thread with some useful info. I'll take a look at the code, unless someone beats me to it ;)

John K.