Jump to content
  • Advertisement
Sign in to follow this  
flashinpan

[XNA] Z-order of 2D Sprites? [SOLVED]

This topic is 3598 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

XNA 3.0 If I have a bunch of 2D sprites that overlap, how do I control the order in which they overlap? Please provide sample source code. [Edited by - Tom Knowlton on November 15, 2008 11:07:48 AM]

Share this post


Link to post
Share on other sites
Advertisement
You control the sorting by specifying one of the values of SpriteSortMode when calling SpriteBatch.Begin. You can have it either sort in front-to-back or back-to-front order.

Share this post


Link to post
Share on other sites
Quote:
Original post by MJP
You control the sorting by specifying one of the values of SpriteSortMode when calling SpriteBatch.Begin. You can have it either sort in front-to-back or back-to-front order.


Thank you.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!