# RPG Maker Forums

kirbwarrior
I'm guessing someone who lives in the northwest, thinking everyone makes things from the northwest
Tai_MT
Not sure why it's like that in the Engine. It's the same in the Animations. If it's "up", then Y gets subtracted. I suspect whomever programmed it has never viewed an X,Y Axis graph.
Trihan
It works the same way as an image in an image editor does: the top left pixel/tile is 0, 0. This is more common than the Y axis starting at the bottom, which is mainly a maths thing.
AkiraKotatsuhime
When a program counts lines of a screen or an image from bottom to top, it's the true nightmare. Computers are a big pile of digital math, that doesn't mean pixels have to resemble the top-right graph-quadrant.

Graphs and 3D-environments need a center-point to work, screens and images on the other hand just begin to exist at 0|0.
gstv87
probably the same guy 10.000 years ago who decided to write left to right, top to bottom.
C64_Mat
Maybe he lived on the top floor of a building?
ATT_Turan
As Trihan said, this is standard for everything that has to do with electronic displays.
Bex
You could use the .abs function to always get positive numbers,
or you insert two conditions:
if X is less than 0 than do X*(-1)
if Y is less than 0 than do Y*(-1)
than X + Y = Distance.

Edit: Your Problem would still remain even if it would be vice versa.
RCXGaming
@ATT_Turan @Trihan @AkiraKotatsuhime Very interesting. I figured that was the case.

@Bex I've actually already fixed my problem. Here's an image showing how:

It allows even combinations like (3X, -3Y) to equal -6 Distance and vice versa instead of just cancelling out to zero.
Trihan
If you don't mind dipping your toe in script a bit, you can do this a lot more easily by using the deltaXFrom and deltaYFrom functions.
Copywright
Not gonna lie, never used any other engine that worked this way. Unity is y + 1 == up, same for GameMaker.

Didn't know image editors used inverted axes too.

### Latest Profile Posts

Surprise Surprise.
If you are a fan of TRPGs like Fire Emblem, take a moment to help me by filling out this:

Camping inside a hidden cave.
I don’t believe in astrology. I’m a Sagittarius and we’re skeptical.

The concept art for the sprite of Senary, a major character in my upcoming (as-of-yet-unnamed) project. She is known as the Timelord because she can "stop time" by making eye contact with a person; Paralyzing them for a short period of time through a type of hypnosis. Tell me what you think about her. I'm thinking of changing the color of her coat.