+3 votes

Can I invert the Y axis in the 2D mode of godot ? I want the y value going up when my objects go up.

in Engine by (17 points)

You could probably make a new variable called something like "y_inverse" and set it to -y every step.

1 Answer

+2 votes

Not enough info. However, you can shift the viewport to a higher Y axis.
Simply by dragging your camera and objects to a higher Y axis.

In Computer Science, computers were built to render the screen from top -> bottom and left -> right, which naturally puts the view in any game engine to the 4th quadrant (-1,-1). Ideally most Developers want their 2D graphics to be in the 2nd axis (1,1).

Also I do not recommend making a new "y_inverse" variable because it's unnecessary. If you are using C# I would recommend that you use a Pointer variable instead.

by (204 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.