Jump to content

Relative Calculations


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...