It may be a noob question but here it is...
I'm using Visual Studio with the XNA Framework (3.1) and I'm only going to draw 2D sprites for my game, here is the Draw Method in the main class:
GraphicsDevice.Clear(Color.CornflowerBlue);
spriteBatch.Begin(SpriteBlendMode.AlphaBlend, SpriteSortMode.Immediate, SaveStateMode.None);
background.Draw(this.spriteBatch);
player1.Draw(this.spriteBatch);
player2.Draw(this.spriteBatch);
spriteBatch.End();
base.Draw(gameTime);
The problem is that the player2 is overlapping player1 (because he is drawn after), and I'd like the lowest one of the 2 players (by their position) to be drawn last (to simulate depth).
Thanks in advance! (and sorry for my Engrish, I'm French...)