WillyRL Posted July 9, 2014 Share Posted July 9, 2014 Hallo, I'm come again , and asking you again I have a problem , I want make a HUD , But i don't know how to get , X, Y, and Z coordinates from my screen , how can i get a right X, Y , Z , Thank you guys. Link to comment
xXMADEXx Posted July 9, 2014 Share Posted July 9, 2014 Your screen is 2D, there is no Z value, and what do you mean you don't know how to get the position? Link to comment
WillyRL Posted July 9, 2014 Author Share Posted July 9, 2014 I'm sorry i'm forgot , I mean X and Y value , How can i get X and Y Value for my HUD example: I want My HUd on Top Right , or Top Left , how to get the X and Y Value, Thank you. Link to comment
xXMADEXx Posted July 9, 2014 Share Posted July 9, 2014 Use the function getGetScreenSize. Link to comment
Max+ Posted July 9, 2014 Share Posted July 9, 2014 local sValue , nValue = guiGetScreenSize() Link to comment
_DrXenon Posted July 9, 2014 Share Posted July 9, 2014 x,y = guiGetScreenSize() -- to add it on center use: x*0.5,y*0.5 as x,y values -- not exactly in center.. just an example -- to add it on top right try: x*0.9,y*0.2 as x,y values There are width and height values also, don't forget em' Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now