However, when I'm running the "> Background turns blue | Torque X 2D | Forums | Community | GarageGames.com

Game Development Community

Background turns blue

by Carolina Torres · in Torque X 2D · 10/13/2008 (6:48 am) · 4 replies

I set the background of my game to yellow green. Here's the code from torqueSettings.xml





However, when I'm running the game and I close the computer lid or sometimes when I change the window focus from the game to something else, the background color changes to dark blue! This also happens if I try to run the game in fullscreen mode. Why does this happen?


By the way, I tried to change the background color through code by overriding the draw method in Game.cs

protected override void Draw(GameTime gameTime)
{
base.Draw(gameTime);
this.GraphicsDeviceManager.GraphicsDevice.Clear(Color.YellowGreen);
screenManager.Draw(gameTime);
}

but if I did this, all menus and GUIs drawned by the screenManager were put behind the background! It also happens if I change the color after the screenManager.Draw... (My screenManager is a DrawableGameComponent)

Help on these two questions is appreciated :)

#1
11/01/2008 (6:59 am)
I am facing same problem too , whenever i switch application, the game area changes to blue color on returning to the game instance.
#2
11/01/2008 (7:36 am)
worked o.k. in my application.
#3
12/04/2008 (8:10 pm)
This happens to me too when my screensaver comes on while the game's running. Anyone know how to fix it?
#4
12/07/2008 (11:11 am)
Same problem here. When I minimize the window and reopen the game, I get a purple screen of death... and the game never comes back from it!!

Does someone know if it is a Torque X bug or something else?