Sorry, I should have been more specific lol. I am not looking for MY resolution. I would like to know if anyone has the formula to calculate the player's resolution. I need to display something in my levels in the center of the player's screen. Not knowing what each individual player has as resolution makes this hard unless I can have my script calculate the resolution each time it is run for each player.
So, in essence, I need a formula that works in Lua that calculates the X and Y on the screen via script. I looked in global, and found the following commands:
SetImagePosition(x,y)
ShowImage(i)
SetImageAlignment(I)
Now, I am aware of how to use them, I just need help with the calculation (Mainly because I suck at math lol) because there is no command for "get screen resolution". If there was, I would write something similar to:
function resolution_init()
end
X = GetScreenResolutionX
Y = GetScreenResolutionY
function resolution_main()
CenterX = X / 50
CenterY = Y / 50
SetImagePosition(CenterX, CenterY)
ShowImage(Image)
end
Just an example, but hopefully that explains more about what I am looking for.