Sign in to follow this  

Need Help With XNA

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

Hey all,

I'm very new to programming and have decided to learn c# as my first language, I am currently working on a major project for my year 12 "Software Design and Development" class using the xna framework. I need to load an array of about 30 boxes, as well as a paddle and a ball problem is, when i try to load them only about 9 or 10 of the boxes come up on the screen and the ball and paddle aren't loaded at all. any help on this would be greatly appreciated.

P.S. Before I loaded the background I didn't have a problem getting the ball and paddle on the screen.

Thanks in advance.

[attachment=6985:Game1.jpg][attachment=6986:Syntax1.jpg][attachment=6987:Syntax2.jpg][attachment=6988:Syntax3.jpg]

Share this post


Link to post
Share on other sites
You're doing your drawing backwards. You need to draw the background first, then objects in the foreground - paddle, balls, blocks.

Share this post


Link to post
Share on other sites
yeah, try to draw first the objects further from the camera, and at last the ones closest to the camera.

Share this post


Link to post
Share on other sites
well it works, thanks [img]http://public.gamedev.net//public/style_emoticons/default/biggrin.png[/img] but for some reason i need to have two identical loops for the same thing when loading the boxes or else only about half of them show up any reason for this?

Share this post


Link to post
Share on other sites

This topic is 2174 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this