Sign in to follow this  

[xna] Inverted y axis?

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

Hi,

Ive been doing a 2d game in xna 3.1 and I realized that the y axis was inverted. Example 1: A bird is now flying in the ground, but his position is like (x, y).
Example 2: A rock supposed to be in the ground is no flying, but its position is like (x, -y). Negative y is now up, positive y is now down. My camera matrix is ok and all positions are ok. If you need a piece of code, just ask (my application's code is really big, that's why I don't put a piece of it). Do you have any suggestions?

Thanks for reading, thecheeselover

Share this post


Link to post
Share on other sites
If you use screen coordinates for your positions, that's how screen coordinates work. The screen origin is in the upper left-hand corner - x=0, y=0. The lower right-hand corner of the screen - x=screen-width, y=screen-height.

Share this post


Link to post
Share on other sites

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