Help with SceneLoader
by Do Not Delete · in Torque X 2D · 08/04/2007 (12:19 pm) · 0 replies
I setup a basic Main Menu so that when I press enter on the Single Player button it loads a level.
The code is this:
But it won't load the level. Is there a reason why?
The code is this:
private void _mainMenuSinglePlayer(float val)
{
if (Epsilon.FloatIsNotZero(val))
{
PlatformerStarter.Game.Instance.SceneLoader.Load(@"data\levels\sample_level.txscene");
UtopiaHUD.Instance.GUI.Folder = GUICanvas.Instance;
T2DSceneCamera _cam = (T2DSceneCamera)TorqueObjectDatabase.Instance.FindObject("myCamera");
//this.Camera = _cam;
}
}But it won't load the level. Is there a reason why?
About the author