sioux123
|
  |
| Joined: 18 Nov 2011 |
| Total Posts: 970 |
|
|
| 10 Aug 2016 02:36 PM |
| Say I set a GuiObject to have a size of 0, 100, 0, 100, I set that while i'm in studio on my big high resolution monitor, and it looks nice. But if someone on a small screen with a low resolution sees it, will the GuiObject appear bigger? Or does it scale? |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2016 02:38 PM |
general rule of thumb:
scale for position, offset for size
Formerly xXTheRobotXx, add 13,349 posts |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2016 02:39 PM |
even better rule of thumb:
scale for damn near everything |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2016 02:40 PM |
I'd advice using this tutorial for making GUIs: http://devforum.roblox.com/t/keeping-the-aspect-ratio-of-your-guis/17171
|
|
|
| Report Abuse |
|
|
sioux123
|
  |
| Joined: 18 Nov 2011 |
| Total Posts: 970 |
|
|
| 10 Aug 2016 02:44 PM |
| I wish there was a position constraint |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 10 Aug 2016 02:47 PM |
even better better advice:
local player = game.Players.LocalPlayer local mouse = player:GetMouse() local gui = script.Parent
local ScreenSizeX = mouse.ViewSizeX local ScreenSizeY = mouse.ViewSizeY local ScaleX = 2 local ScaleY = 3
gui.Size = UDim2.new(0,ScreenSizeX/ScaleX,0,ScreenSizeY/ScaleY)
gui.Position = UDim2.new(0.5,-gui.AbsoluteSize.X/2,0.5,-gui.AbsoluteSize.Y/2) --centering it
|
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 10 Aug 2016 02:53 PM |
To actually answer OP's question:
It will appear exactly the same size on a small screen. It won't scale to the screen size, it will stay the same. Meaning that if there's a GUI on your screen that takes up half the screen using offset, it will take up the whole screen for someone with half of your screen size. |
|
|
| Report Abuse |
|
|