Disregard, I had my center x set to my screen's height
The center of the screen is : ScrW() * 0.5 and ScrH * 0.5 . If you are drawing a box, and you set its x and y position to these values, be sure to substract the ( box width and box height / 2 ), so that the box is centered in the center of the screen.
Example:
w,h = ScrW(),ScrH()
local centerw,centerh = w * 0.5,h * 0.5
local boxwide,boxtall = 64,30
draw.RoundedBox ( 4, centerw - ( 64 / 2 ), centerh - ( 39 / 2 ), boxwide ,boxtall, Color ( 255,0,0,255 ) )
Sorry, you need to Log In to post a reply to this thread.