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: Positioning a Frame/ScreenGui into the center?

Previous Thread :: Next Thread 
DiaryHolder is not online. DiaryHolder
Joined: 06 Dec 2014
Total Posts: 95
26 Feb 2017 11:42 AM
I'm new to guis, but I know it'll be different for different monitors.

I heard about scaling, but the wiki guide on it; I didn't really understand it?

My friend told me to do {0.5, 0, 0, 0} for the position, and it centered. But the frame had the default size, so when I changed it to what I wanted, it changed position to the right.
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
26 Feb 2017 11:42 AM
http://wiki.roblox.com/index.php?title=API:Class/GuiObject/AnchorPoint


Report Abuse
Nuclear_Energy is online. Nuclear_Energy
Joined: 21 Jul 2013
Total Posts: 1380
26 Feb 2017 11:44 AM
you have to experiment with GUI's to understand them. Try resizing ur studio screen and see how your gui's interact with ur screen positioning...the scale factor can sometimes be used to make gui's resize themselves
Report Abuse
IcedVapour is not online. IcedVapour
Joined: 10 Nov 2013
Total Posts: 2741
26 Feb 2017 12:01 PM
the center is:

{0.5, SizeX/2, 0.5, SizeY/2}
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
26 Feb 2017 12:03 PM
Sure, just overcomplicate it.


Report Abuse
IcedVapour is not online. IcedVapour
Joined: 10 Nov 2013
Total Posts: 2741
26 Feb 2017 12:03 PM
Thats the way its been done for years
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
26 Feb 2017 12:04 PM
http://wiki.roblox.com/index.php?title=API:Class/GuiObject/AnchorPoint [2]


Report Abuse
IcedVapour is not online. IcedVapour
Joined: 10 Nov 2013
Total Posts: 2741
26 Feb 2017 12:04 PM
yeah never seen that b4
Report Abuse
DiaryHolder is not online. DiaryHolder
Joined: 06 Dec 2014
Total Posts: 95
26 Feb 2017 12:24 PM
Thank you all, finally figured it out. Thanks again.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
26 Feb 2017 01:03 PM
gui.Position = UDim2.new(0.5,-gui.AbsoluteSize.X/2,0.5,-gui.AbsoluteSize.Y)




Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
26 Feb 2017 01:03 PM
-gui.AbsoluteSize.Y/2 *


Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
26 Feb 2017 01:05 PM
Seriously, why?
I feel like people post blindly without reading the replies at all.


Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
26 Feb 2017 01:06 PM
AnchorPoint is for newgens


Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
26 Feb 2017 01:06 PM
You know what, you're right. I'm not using any of ROBLOX's built-in functions anymore.


Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
26 Feb 2017 01:07 PM
Amen to that


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