Marc Kinsman

Ok, I am really new to programming and I am working off a tutorial and then modifying it. I have a Game component for drawing maps and i am having trouble layering them correctly. Thus far i have theorized that my problem is that the program automatically does Draw calls and does the one in Game1 first, then it does the draw calls of the component. I want it to go Component 1 Main then Component 2. Is there anyway to change the order easily If i have not explained this clearly please tell me and i will try to clarify, also if you want to see code for any reason i would be more than happy to send it to you.


Re: XNA Game Studio Express Layering and Draw call order

Thomas Aylesworth

I think you are trying to change the order in which GameComponents are drawn.  If so, you can set the DrawOrder property of the component.

http://msdn2.microsoft.com/en-us/library/microsoft.xna.framework.drawablegamecomponent.draworder.aspx

If you need more help, I'd recommend asking this question again over on the new XNA forums. I'll be happy to help you more over there.





Re: XNA Game Studio Express Layering and Draw call order

Marc Kinsman

Thank you I added a post over their, i had looked at this option earlier but i did not see what the main draw method is in draw order, is it 0 Or can i not draw anything before it




Re: XNA Game Studio Express Layering and Draw call order

Thomas Aylesworth

I've answered on the other forum. Respond there if you have any more questions.