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 » Scripting Helpers
Home Search
 

Re: Gui Center

Previous Thread :: Next Thread 
YodaimeKing is not online. YodaimeKing
Joined: 01 Nov 2009
Total Posts: 3961
26 Dec 2013 01:43 PM
Having issues with my GUI being centered..

Current Position

{.5,1}{.5,1)

Current Size
{0,200}{0,50}


Does not appear to be centered.
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
26 Dec 2013 01:47 PM
Read this.
http://www.roblox.com/Forum/ShowPost.aspx?PostID=92839179
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
26 Dec 2013 01:48 PM
Guis are positioned from the top-left of them.

So (0.5,-100,0.5,-25) I think.
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
26 Dec 2013 01:50 PM
Sorry, make the negatives positive.
Report Abuse
YodaimeKing is not online. YodaimeKing
Joined: 01 Nov 2009
Total Posts: 3961
26 Dec 2013 01:50 PM
Graci
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
26 Dec 2013 01:58 PM
keep them nagtive
Report Abuse
YodaimeKing is not online. YodaimeKing
Joined: 01 Nov 2009
Total Posts: 3961
26 Dec 2013 02:05 PM
This would work for Position aswell?

{.5,-1}{.5,-1}
Report Abuse
YodaimeKing is not online. YodaimeKing
Joined: 01 Nov 2009
Total Posts: 3961
26 Dec 2013 02:06 PM
This isn't working D:

Or I'm completly lost..
Report Abuse
YodaimeKing is not online. YodaimeKing
Joined: 01 Nov 2009
Total Posts: 3961
26 Dec 2013 02:11 PM
and

{.25, 0},{.25, 0} does not center it..
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
26 Dec 2013 02:12 PM
{0.5, -100}, {0.5, -25)
Report Abuse
YodaimeKing is not online. YodaimeKing
Joined: 01 Nov 2009
Total Posts: 3961
26 Dec 2013 02:18 PM
Ok, thats not working either ):

I have the screen GUI, and it is separately holding a frame and a text label. The Frame is fine I set its size to {1,1},{1,1} and it will always cover the players screen regardless of their screen size (Right?); but thats not the problem. I need the text label at the center of the persons screen regardless of the persons screen size. .25,0 does not do this.
Report Abuse
Jetta765214 is not online. Jetta765214
Joined: 22 Oct 2008
Total Posts: 1855
26 Dec 2013 02:20 PM
Lets say the frame in the center of the screen is 100,100 pixels. To set it to the center you would do:

frame.Position = UDim2.new(.5,-50,.5,-50)
frame.Size = UDim2.new(0,100,0,100)
Report Abuse
YodaimeKing is not online. YodaimeKing
Joined: 01 Nov 2009
Total Posts: 3961
26 Dec 2013 02:21 PM
So how WOuld I get perfect Size for every screen?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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