|
| 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 |
|
|
|
| 26 Feb 2017 11:42 AM |
http://wiki.roblox.com/index.php?title=API:Class/GuiObject/AnchorPoint
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 26 Feb 2017 12:01 PM |
the center is:
{0.5, SizeX/2, 0.5, SizeY/2} |
|
|
| Report Abuse |
|
|
|
| 26 Feb 2017 12:03 PM |
Sure, just overcomplicate it.
|
|
|
| Report Abuse |
|
|
|
| 26 Feb 2017 12:03 PM |
| Thats the way its been done for years |
|
|
| Report Abuse |
|
|
|
| 26 Feb 2017 12:04 PM |
http://wiki.roblox.com/index.php?title=API:Class/GuiObject/AnchorPoint [2]
|
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Feb 2017 12:24 PM |
| Thank you all, finally figured it out. Thanks again. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
|
| 26 Feb 2017 01:05 PM |
Seriously, why? I feel like people post blindly without reading the replies at all.
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 26 Feb 2017 01:06 PM |
AnchorPoint is for newgens
|
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|