GameOver Help
by Do Not Delete · in Torque X Platformer Kit · 07/12/2007 (8:38 pm) · 3 replies
I purposly kill myself to test the game over animation but it doesn't work. The code is this:
And I know that there is a object called GameOverAnimation.
Here is a picture of the error message:
img359.imageshack.us/img359/6303/untitledzh0.jpg
public void GameOver()
{
if (_gameIsOver)
return;
T2DAnimatedSprite gameOverImage = TorqueObjectDatabase.Instance.CloneObject<T2DAnimatedSprite>("GameOverAnimation");
T2DSceneCamera camera = T2DSceneGraph.Instance.Camera as T2DSceneCamera;
camera.Dismount();
gameOverImage.Position = camera.Position;
TorqueObjectDatabase.Instance.Register(gameOverImage);
_gameIsOver = true;
}And I know that there is a object called GameOverAnimation.
Here is a picture of the error message:
img359.imageshack.us/img359/6303/untitledzh0.jpg
About the author
Torque Owner Do Not Delete
Thanks.