If you are drawing both items in a single SpriteBatch, make sure the background is drawn first.
MySpriteBatch.Begin();
MySpriteBatch.Draw(Background... etc...);
MySpriteBatch.Draw(Player... etc...);
MySpriteBatch.End();
If you are drawing them in 2 separate SpriteBatches, make sure the background SpriteBatch is drawn first
BackgroundBatch.Begin();
BackgroundBatch.Draw(Background... etc...);
BackgroundBatch.End();
PlayerBatch.Begin();
PlayerBatch.Draw(Player... etc...);
PlayerBatch.End();
leec22
| Fri, 07 Sep 2007 17:05:00 GMT |