protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.White); int spriteID = TidusSprite.SpriteID(); //Add a back ground spriteBatch.Begin(); spriteBatch.Draw(Background, new Rectangle(0, 0, 800, 480), Color.White); spriteBatch.End(); //--------------------------- if (spriteID == 2) { if (location.X <= 0) { location.X = graphics.PreferredBackBufferWidth; } else { location.X -= 5; } } else if (spriteID == 3) { if (location.Y >= graphics.PreferredBackBufferHeight) { location.Y = 0 - graphics.PreferredBackBufferHeight / 10; } else { location.Y += 5; } } TidusSprite.Draw(spriteBatch, location); base.Draw(gameTime); }