Position of X and Y coordinates?

Hello,

I'm using MogHunter's battlehud plugin. I've been trying to rearrange the layout of the hud and having trouble getting the right X-Y coordinates. I keep getting confused if I should add or subtract the x/y value to move something left/right/up/down.
047.gif

How exactly does this work? What do I do if I want to move something left, right, up, or down? Do I increase or decrease the value of x and y? I thought I'd have to decrease the value to move something left or down, and increase the value to move right or up. But no, it's not like those graphs we did in math at all!
006.gif


For example, if I want to show a picture right at the center, what coordinates do I put?

Thanks in advance!
16.gif
At position 0,0 it will be on the top left.

If you subtract X, it will go to the left
If you subtract Y, it will go to the top
if you want to put it at the center of the screen, then you need to know your resolution size then divide it by 2.
if you want to put it at the center of the screen, then you need to know your resolution size then divide it by 2.
don't forget to also know the image size (in pixel) and then divide it by 2 and then substract above by that value... to make the image centered at the screen...

so i think the formula should be:
x = ((game resolution width)/2) - (image size in pixel width/2)
y = ((game resolution height)/2) - (image size in pixel height/2)
don't forget to also know the image size (in pixel) and then divide it by 2 and then substract above by that value... to make the image centered at the screen...
This depends. If you have already set the image anchor at the center of the image, then you don't need this.

Original thread: https://forums.rpgmakerweb.com/threads/position-of-x-and-y-coordinates.133163/