Leafnary
|
  |
| Joined: 18 May 2013 |
| Total Posts: 2 |
|
|
| 13 Jun 2015 01:31 AM |
| I made a gui and everything is scaled but for my friend everything is not balanced and stuff.. |
|
|
| Report Abuse |
|
TC8950
|
  |
| Joined: 09 May 2010 |
| Total Posts: 4925 |
|
|
| 13 Jun 2015 09:28 PM |
He is probably using a different resolution than you are.
Size & Position properties use this.
{0, 0},{0, 0} The first 0's in brackets will be places in the same position on every screen. The second 0's in brackets size & position objects by pixels.
For size,
{1, 0},{1, 0} fills the whole screen, on every screen.
{0.5, 0},{0.5, 0} fills half of the screen, on every screen.
{0, 800},{0, 640} would fill the whole screen for anyone using a 800x640 resolution, but if someone is using a bigger resolution, it would only fill 800x640 pixels.
For position
{1, 0},{1, 0} Places the top left edge of the object at the bottom right (not visible) of the screen, on every screen.
{0.5, 0},{0.5, 0} Will place the top left edge of the object in the middle of the screen, on every screen.
{0, 400},{0, 400} Will place the top left of edge of the object 400 pixles right, and 400 pixles down.
Also, check out wiki.roblox.com searching for common GUI objects. (ScreenGui, Frame, TextLable, ect.) |
|
|
| Report Abuse |
|
|
| 13 Jun 2015 10:18 PM |
| What is Scale and Offset used for, then? |
|
|
| Report Abuse |
|
|
| 13 Jun 2015 10:22 PM |
| scale is better, its fraction of screen, but offset is pixels so its worse. |
|
|
| Report Abuse |
|
TC8950
|
  |
| Joined: 09 May 2010 |
| Total Posts: 4925 |
|
|
| 13 Jun 2015 10:26 PM |
@President
Scale will look relatively the same in size & position (based on the player's screen/game resolution aspect ratio). It will be relativity positioned the same on every screen and be relativity the same size on every screen. (with the exception of stretched resolutions)
Offset will size & position the object on pixels,
let's say we size a object with this {0, 1280},{0, 720}
With the resolution 1280x720, it will fill perfectly. With the resolution 800x640, it won't fit the screen, but be to big. With the resolution 1920x1080, it will fill some of the screen, but leave alot unfilled.
Same with positioning in offset, it uses pixels. If I position a object {0, 1280},{0, 720}
You would need a screen/game resolution over 1280x720 to see it. |
|
|
| Report Abuse |
|
|
| 13 Jun 2015 10:51 PM |
| TC gave you perfect information and help. ;) |
|
|
| Report Abuse |
|