|
| 28 Jun 2015 05:51 AM |
| I want to make a game that is compatible for mobile, tablets and computers. I am going to have a shop GUI, however I am unsure how to make the size of the GUI perfect for mobile and computers, since using offset will make the GUI too big to see on mobile but using the screen size will mess up the GUI on computers since some computer screens are square and others are rectangular. Help? |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2015 05:53 AM |
That's why you don't use offset but only when necessary. Try using resolution instead, the first number in the set of brackets. So (XX,YY), use XX. |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2015 12:55 PM |
| Yes, I know that's what I am supposed to use, however it would make the sizes messed up. For example, if I wanted a square GUI and made it size 0.3 by 0.3 it wouldn't be square on rectangular computer screens or on mobiles so how would I make it stay the same shape on all devices? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
rewiredZ
|
  |
| Joined: 27 Jun 2015 |
| Total Posts: 10 |
|
|
| 28 Jun 2015 06:11 PM |
An easy way to do it would to be having a GUI button on the side of the screen labeled "Mobile? Click this button." Clicking or tapping the button would scale the size of the GUI down.
Ba-Ba-Ba-Ba-Barium, Ba-Ba-Ba-Ba-Barium, a POTASSIUM! |
|
|
| Report Abuse |
|
|
Adive
|
  |
| Joined: 11 Nov 2012 |
| Total Posts: 159 |
|
|
| 28 Jun 2015 06:49 PM |
| You could get the screens size and do some math based off that? |
|
|
| Report Abuse |
|
|
|
| 29 Jun 2015 01:32 AM |
| I don't get how you make them stay the same shape :/ |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 29 Jun 2015 01:37 AM |
Easy.
Get the screen size then resize everything in offset accordingly. |
|
|
| Report Abuse |
|
|
Kroniso
|
  |
| Joined: 05 Dec 2014 |
| Total Posts: 68 |
|
|
| 29 Jun 2015 02:41 AM |
| Make a GUI for Mobile and a GUI for computer. Then do a simple check with UserInputService to change which one shows for what device. It will not be 100% perfect but it will help with the ratio differences. |
|
|
| Report Abuse |
|
|