0 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.

asked Jun 17, 2019 in Engine by Rex (14 points)

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

1 Answer

+1 vote

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.

answered Jun 18, 2019 by Dooowy. (216 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 How to use this Q&A? before posting your first questions.