gokalpfirat Posted July 24, 2013 Share Posted July 24, 2013 How can i calculate the relative of an absolute value. Dont redirect me to the wiki I know the example at wiki but there are a lot of way to calculate this I want to learn. Which calculation you use? Link to comment
bandi94 Posted July 24, 2013 Share Posted July 24, 2013 Position the window on your screen with absolute value like : 400,350 . Then check your screen resolution like : 1366x768. then relative_x = 400/1366 --(0.292) relative_y = 350/768 --(0.455) then Gui...... (ScreenW*relative_x, ScreenH*relative_y ) this will stay on the same place on every resolution. 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