What I ultimately want to do is have a HUD with ModHunter's plugins (Lets use ActorHUD in this example) that gets repositioned when a different screen resolution is chosen by the player using MUSH's OptionSystemPlus_P2 plugin.
My question is instead of just putting the HUD a certain amount of pixels somewhere on the screen, can I use a Formula to put it like...
...to put the hud at the bottom center, no matter what the resolution is instead of just putting in numbers, like
I was looking around and the closest thing I found to something like this is
from here (https://forums.rpgmakerweb.com/index.php?threads/rpg-maker-mv-screen-size.58660/)
I'm just curious if there anything in the API, like screenWidth or screenHeight, I really don't want to use hard numbers if I can help it, especially since I want to give the option for multiple resolutions.
Looking through the API I see this...
I tried putting this in ActorHUD's
Just made it disappear.
Anyone know how to do this or if its possible?
My question is instead of just putting the HUD a certain amount of pixels somewhere on the screen, can I use a Formula to put it like...
Code:
x = screenWidth/2 - hudLength/2
&
y = screenHeight - hudHeight
...to put the hud at the bottom center, no matter what the resolution is instead of just putting in numbers, like
Code:
x = 0
&
y = 440
I was looking around and the closest thing I found to something like this is
Code:
var gw = Graphics.width;
var gh = Graphics.height;
I'm just curious if there anything in the API, like screenWidth or screenHeight, I really don't want to use hard numbers if I can help it, especially since I want to give the option for multiple resolutions.
Looking through the API I see this...
I tried putting this in ActorHUD's
Code:
y = (Scene_Map.height/2)
Anyone know how to do this or if its possible?