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.
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.
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.
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.