generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: GUI sizes for mobile

Previous Thread :: Next Thread 
SimplyRemove is online. SimplyRemove
Joined: 24 Nov 2012
Total Posts: 4387
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
Mariokart09 is not online. Mariokart09
Joined: 29 Apr 2009
Total Posts: 442
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
SimplyRemove is online. SimplyRemove
Joined: 24 Nov 2012
Total Posts: 4387
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
SimplyRemove is online. SimplyRemove
Joined: 24 Nov 2012
Total Posts: 4387
28 Jun 2015 02:27 PM
Bump.
Report Abuse
SimplyRemove is online. SimplyRemove
Joined: 24 Nov 2012
Total Posts: 4387
28 Jun 2015 04:57 PM
Bump.
Report Abuse
rewiredZ is not online. 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 is not online. 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
SimplyRemove is online. SimplyRemove
Joined: 24 Nov 2012
Total Posts: 4387
29 Jun 2015 01:32 AM
I don't get how you make them stay the same shape :/
Report Abuse
chimmihc is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image