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: Easy Help!

Previous Thread :: Next Thread 
ThisUserSecret is not online. ThisUserSecret
Joined: 29 Sep 2012
Total Posts: 1094
04 Apr 2015 07:32 PM
How come for a gui if I set the size to UDim2.new(1,0,1,0) It doesn't reach the tips of the screen it goes way over so it would be precisely UDim2.new(8.78,0,8.78,0) for me. Also, how come when moving a frame .5 isn't the middle of the screen it's more like 5/6 of the screen.
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
04 Apr 2015 07:33 PM
You must have a funky screen, I wouldn't know the problem as I haven't touched GUIs in a while.

I take it roblox screwed up an update and now we are getting an influx (presumably 3 threads so far)

about Guis scale not being correct
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
04 Apr 2015 07:36 PM
When you position a frame, the position is where the top left corner of the frame is located. If you want the gui to look centered, then you need to use the offset.

For example, if a frame's size was {0, 200, 0, 200}, then for a correctly centered frame the position would need to be {.5, -100, .5, -100}
Report Abuse
ThisUserSecret is not online. ThisUserSecret
Joined: 29 Sep 2012
Total Posts: 1094
04 Apr 2015 07:37 PM
Why does it need the -100's?
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
04 Apr 2015 07:41 PM
That is the offset. I am basically positioning the frame's top left corner to the center of the screen. Obviously that makes it look like it is not centered so we need to add the -100s to center it. If you don't have it, the frame will be too much towards the bottom and right. 100 is half of the frame size so we just take that away from the position.
Report Abuse
ThisUserSecret is not online. ThisUserSecret
Joined: 29 Sep 2012
Total Posts: 1094
04 Apr 2015 07:44 PM
Oh! I get that now!
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