• Advertisement
Sign in to follow this  

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

This topic is 3389 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
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