Yue Posted April 4, 2019 Posted April 4, 2019 I'm trying to find the coordinates of the center of the screen to position an image on the lower right side, but this doesn't seem to work, starting with the image not being in the middle of the screen with the following code. context:DrawImage(hudPlayer, context:GetWidth()/2,context:GetHeight()/2,128,128) Any suggestions? Quote
Solution mdgunn Posted April 4, 2019 Solution Posted April 4, 2019 Is it just that you need to adjust for size of your image because image is placed according to top left corner so minus half the height and width of image to position? 1 Quote
Yue Posted April 4, 2019 Author Posted April 4, 2019 8 hours ago, mdgunn said: Is it just that you need to adjust for size of your image because image is placed according to top left corner so minus half the height and width of image to position? Ok, Thanks You. context:DrawImage(hudPlayer,context:GetWidth()-128-15,context:GetHeight()-128,128,128) 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.