|
| 14 May 2016 02:35 PM |
| so the GUI is in the middle of the screen nobody what size u make it, because if I do 0.5, 0.5, and then I make the size bigger, it's more on the right side of the screen |
|
|
| Report Abuse |
|
|
| |
|
Myaxp
|
  |
| Joined: 05 Jul 2010 |
| Total Posts: 248 |
|
|
| 14 May 2016 02:43 PM |
All UDim2 values are based on the top left corner.
UDim2.new(ScaleX, OffsetX, ScaleY, OffsetY)
Scale is relative to where your screen's resolution. Offset is in pixels.
#code --// Myaxp |
|
|
| Report Abuse |
|
|
|
| 14 May 2016 02:45 PM |
| ...I knew that. That doesn't help at all.. |
|
|
| Report Abuse |
|
|
Myaxp
|
  |
| Joined: 05 Jul 2010 |
| Total Posts: 248 |
|
|
| 14 May 2016 02:47 PM |
Imagine the offset size of your frame is 200 on the X axis.
To get half of the screen, you must get half of the screen's resolution by using Scale.
Half of the screen is literally 0.5. Now all you have to do is half the value of your offset and make it negative.
{0.5, -100}
#code --// Myaxp |
|
|
| Report Abuse |
|
|
|
| 14 May 2016 02:51 PM |
| -100 where da frik did that come from |
|
|
| Report Abuse |
|
|
Myaxp
|
  |
| Joined: 05 Jul 2010 |
| Total Posts: 248 |
|
|
| 14 May 2016 02:52 PM |
"Imagine the offset size of your frame is 200 on the X axis."
"Now all you have to do is half the value of your offset and make it negative."
#code --// Myaxp |
|
|
| Report Abuse |
|
|