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 Scaling

Previous Thread :: Next Thread 
JonathanW123 is online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
14 May 2016 02:35 PM
so the GUI is in the middle of the screen nobody what size u make it, because if I do 0.5, 0.5, and then I make the size bigger, it's more on the right side of the screen
Report Abuse
JonathanW123 is online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
14 May 2016 02:39 PM
b
Report Abuse
Myaxp is not online. Myaxp
Joined: 05 Jul 2010
Total Posts: 248
14 May 2016 02:43 PM
All UDim2 values are based on the top left corner.

UDim2.new(ScaleX, OffsetX, ScaleY, OffsetY)

Scale is relative to where your screen's resolution.
Offset is in pixels.

#code --// Myaxp
Report Abuse
JonathanW123 is online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
14 May 2016 02:45 PM
...I knew that. That doesn't help at all..
Report Abuse
Myaxp is not online. Myaxp
Joined: 05 Jul 2010
Total Posts: 248
14 May 2016 02:47 PM
Imagine the offset size of your frame is 200 on the X axis.

To get half of the screen, you must get half of the screen's resolution by using Scale.

Half of the screen is literally 0.5. Now all you have to do is half the value of your offset and make it negative.

{0.5, -100}

#code --// Myaxp
Report Abuse
JonathanW123 is online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
14 May 2016 02:51 PM
-100 where da frik did that come from
Report Abuse
Myaxp is not online. Myaxp
Joined: 05 Jul 2010
Total Posts: 248
14 May 2016 02:52 PM
"Imagine the offset size of your frame is 200 on the X axis."

"Now all you have to do is half the value of your offset and make it negative."

#code --// Myaxp
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