I'm trying to place an icon on the screen using Lua whenever a certain player variable is active. In green resolutions it works fine, but of course in non-green resolutions it strays from its intended placement due to the way SRB2 handles different aspects.
I subtracted values from v.width() and v.height() to try and circumvent the problem, but for some reason it renders off the screen in many resolutions, including green ones. I thought perhaps they were scaled values, so I divided by v.dupx() and v.dupy() respectively, which worked in green resolutions, but in others actually rendered the icon on the opposite side of the screen. If they don't return your screen size, what do v.width() and v.height() actually return? And how do I use v.dupx() and v.dupy()?
I subtracted values from v.width() and v.height() to try and circumvent the problem, but for some reason it renders off the screen in many resolutions, including green ones. I thought perhaps they were scaled values, so I divided by v.dupx() and v.dupy() respectively, which worked in green resolutions, but in others actually rendered the icon on the opposite side of the screen. If they don't return your screen size, what do v.width() and v.height() actually return? And how do I use v.dupx() and v.dupy()?