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: Screen Position (Gui)

Previous Thread :: Next Thread 
andreas98 is not online. andreas98
Joined: 10 Sep 2008
Total Posts: 246
26 Sep 2011 03:50 AM
Hello, I need a gui to be exactly in the middle of the screen, but the position is always different when the computers screen resulotion is different. Can any script or anything else fix that?
Report Abuse
Aeroh is not online. Aeroh
Joined: 24 Sep 2011
Total Posts: 50
26 Sep 2011 05:56 AM
When you go to set the position, use the first set of ordered pairs. In your case (.5,0,0,0) would set it in the middle of the screen.
Report Abuse
Aeroh is not online. Aeroh
Joined: 24 Sep 2011
Total Posts: 50
26 Sep 2011 05:56 AM
(.5,0.5,0) sorry :P
Report Abuse
andreas98 is not online. andreas98
Joined: 10 Sep 2008
Total Posts: 246
26 Sep 2011 06:36 AM
Thanks, but I think I do something wrong because it is more in the middle of the screen when it is {0.25, 0}, {0.25, 0} but my gui size is also {0, 500}, {0, 500} :)
Report Abuse
Apocalyps is not online. Apocalyps
Joined: 15 Feb 2009
Total Posts: 816
26 Sep 2011 09:31 AM
set it to this:

{0.5, -250},{0.5, -250}
Report Abuse
andreas98 is not online. andreas98
Joined: 10 Sep 2008
Total Posts: 246
26 Sep 2011 09:51 AM
Thanks Apocalyps :D
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
26 Sep 2011 11:03 AM
If I was to position a GUI in the center of the screen, I would make a GUI with 1 pixel as its size, and set it to the center. Then I would make a frame and set its position to the position of the center GUI takeaway half of its X/Y size.
Report Abuse
Unknowncrow is not online. Unknowncrow
Joined: 19 Apr 2014
Total Posts: 188
20 Apr 2014 09:26 AM
bump
Report Abuse
RAYAN1565 is not online. RAYAN1565
Joined: 15 Nov 2009
Total Posts: 299
07 Aug 2014 02:10 PM
{0.5, -200}, {0.5, -200}
Report Abuse
ShiningLuck is not online. ShiningLuck
Joined: 05 Jun 2008
Total Posts: 468
04 Sep 2014 12:30 PM
AWESOME,

So if you place the Scale at 0.5
and the Offset at Half the pixel size of your Gui then it stays Exactly in the Middle no matter the Screen/Window Size!

Thanks You!
Report Abuse
ShiningLuck is not online. ShiningLuck
Joined: 05 Jun 2008
Total Posts: 468
04 Sep 2014 12:32 PM
Oh Don't forget that your Offset should be a Negative Number! (-)
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