generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: GUI offset max

Previous Thread :: Next Thread 
KAMIKAZEPOLO is not online. KAMIKAZEPOLO
Joined: 14 Mar 2012
Total Posts: 1049
30 Jun 2016 09:06 PM
I've had a hard time making a good looking gui with scale, so I've decided to use offset for everything.

How do I find the max offset of the screen that is visible so that I can find the middle point on the screen using offset?
Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
30 Jun 2016 09:08 PM
ScreenGui.AbsoluteSize or Player:GetMouse().ViewSizeX/Y

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
Report Abuse
Titanicman882ftlong is not online. Titanicman882ftlong
Joined: 14 Aug 2012
Total Posts: 430
30 Jun 2016 09:12 PM
Equation for Offset to Scale =

X = Offest
Y = Scale

Y = X / 2 / 1000

[Ex:]

100 / 2 = 50 / 1000 = .05

So if vice versa

X = Y * 1000 * 2

[Ex:]

100 = .05 * 1000 = 50 * 2
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image