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
|
  |
| 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
|
  |
| Joined: 24 Sep 2011 |
| Total Posts: 50 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 10 Sep 2008 |
| Total Posts: 246 |
|
| |
|
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 |
|
|
| |
|
RAYAN1565
|
  |
| Joined: 15 Nov 2009 |
| Total Posts: 299 |
|
| |
|
|
| 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 |
|
|
|
| 04 Sep 2014 12:32 PM |
| Oh Don't forget that your Offset should be a Negative Number! (-) |
|
|
| Report Abuse |
|
|