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: How to size GUIs perfectly?

Previous Thread :: Next Thread 
billybobtijoseph is not online. billybobtijoseph
Joined: 09 Dec 2011
Total Posts: 2163
28 Nov 2017 08:37 PM
https://www.youtube.com/watch?v=k8NP-dqByp4

How can I basically do this but with size? I am trying to put a frame in the middle of my screen and have the size work the same way. So it fits on all screens evenly.
Report Abuse
200Ethan is online. 200Ethan
Joined: 01 Apr 2013
Total Posts: 302
28 Nov 2017 08:39 PM
You get two pairs when you look in the size property
{xR,xO},{yR,yO}
xR is the X relative to the player's screen. xO is the added size in pixels.
yR is the Y relative to the player's screen. yO is the added size in pixels.
Report Abuse
200Ethan is online. 200Ethan
Joined: 01 Apr 2013
Total Posts: 302
28 Nov 2017 08:41 PM
Didn't watch video, sorry if my answer wasn't what you were looking for.
Report Abuse
billybobtijoseph is not online. billybobtijoseph
Joined: 09 Dec 2011
Total Posts: 2163
28 Nov 2017 08:44 PM
Ya. Doesn't really help :L
Report Abuse
AdvancedDrone is online. AdvancedDrone
Joined: 17 Apr 2010
Total Posts: 2599
28 Nov 2017 08:49 PM
Don't use offset, use scale for both positioning and sizing, there is also a UI Editor button in studio which also helps with positioning gui's to fit all screens and sizing them, it's very very useful.


Report Abuse
TheeDeathCaster is online. TheeDeathCaster
Joined: 19 Jun 2011
Total Posts: 1191
28 Nov 2017 08:50 PM
It's possible using the Offset of a GUI. For example, when you set these values in a GUI:

Size = UDim2.new(.8, 0, .8, 0)
Position = UDim2.new(.1, 0, .1, 0)

Or if you want it smaller, such as .5x.5, then you'd:

Size = UDim2.new(.5, 0, .5, 0)
Position = UDim2.new(.25, 0, .25, 0)

And that'll fit in the middle of the screen. For other work, however, you'd have to go through trial and error to accomplish how you want your GUI to be like. Good luck. :)
Report Abuse
billybobtijoseph is not online. billybobtijoseph
Joined: 09 Dec 2011
Total Posts: 2163
29 Nov 2017 08:53 AM
For some reason when I use those small values, in game, it'll be way bigger :/
Report Abuse
Vulkarin is online. Vulkarin
Joined: 17 Mar 2013
Total Posts: 282
29 Nov 2017 08:55 AM
It's based on your screen...in studio when you have explorer properties output etc etc open its only making your screen smaller and smaller compared to when you actually join the game


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