Forum > Mood Light?

Hey, I picked up your book, but I can't finish the moodlight program. I get to the part where you explain what Updating is and there is the code to make the color get steadily brighter and brighter, but it doesn't work:
protected override void Update(GameTime gameTime)
{
//Allows the game to exit
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
this.Exit();
// Make each color brighter
redIntensity++;
greenIntensity++;
blueIntensity++;
base.Update(gameTime);
}

I know that the error has something to do with the void in the first line.
Thanks

September 2, 2008 | Unregistered CommenterChris

Maybe try sending the solution using the Emergency Room under Silly Surgery. That way a proper explanation of the problem might be provided.

Just a thought.

September 4, 2008 | Unregistered CommenterShawn

Okay, I'll try.

September 4, 2008 | Unregistered CommenterChris

I've taken a look and found the problem, take a look in Silly Surgery for more.

September 5, 2008 | Registered CommenterRob

Thanks!

September 7, 2008 | Unregistered CommenterChris