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 » Scripters
Home Search
 

Re: Gui Frame Positioning

Previous Thread :: Next Thread 
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
14 Aug 2015 03:37 AM
I have a gui that I use for a game and it covers the whole computer screen and fits perfectly. However, on the phone app it does not fit the screen. Is there a way I could make the frame automatically fit the screen? Also my gui is in starter gui and is not in workspace functioning on a script.

Does anyone have a script or code that could fix this? Thank you, I really need the help; this new phone app thing confuses me but I want my game to be playable on all devices.
Report Abuse
Chrapnel is not online. Chrapnel
Joined: 01 Feb 2014
Total Posts: 951
14 Aug 2015 03:52 AM
Set the size of the GUI to (1,0,1,0) :)
Report Abuse
StartDeveloping is not online. StartDeveloping
Joined: 16 Feb 2015
Total Posts: 740
14 Aug 2015 03:53 AM
Only edit the scale, not the offset. Example:

{0.1, 0}, {0.1, 0} is 1/10 of the screen
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
14 Aug 2015 03:55 AM
@Start its actually 1/100 of the screen
Report Abuse
FactualTheory is not online. FactualTheory
Joined: 10 Sep 2013
Total Posts: 1365
14 Aug 2015 04:04 AM
1, 0, 1, 0

That will cover any screen.

IDC what thing it is it covers the whole screen.
Report Abuse
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
14 Aug 2015 11:02 AM
I realize it covers the whole screen but I want it to fit any screen too. Is that possible?
Report Abuse
DevUndead is not online. DevUndead
Joined: 24 Jul 2014
Total Posts: 558
14 Aug 2015 11:14 AM
In GUI sizing and positioning you have a table of two int values, the first bring relative size, and the seconded being non-relative.

So say you wanted to resize your GUI relative to the screen, and you wanted it to cover half the screen. You would take the first numbers of the two (being x and y) and make that number .5

Ex: {0.5,0}, {0.5,0}

This makes the GUI half( or 0.5 ) of what the current screen is; however, if you wanted it to just resize you would use the seconded numbers which I don't recommend.

Ex {0,0.5}, {0,0.5} The .5 being Robloxs units. I dont know what they use.
Report Abuse
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
14 Aug 2015 05:50 PM
So if I do int values of (1,0) and (1,0) it will fit the whole screen no matter the size of the screen?
Report Abuse
DevUndead is not online. DevUndead
Joined: 24 Jul 2014
Total Posts: 558
14 Aug 2015 06:09 PM
Yes..
Report Abuse
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
14 Aug 2015 07:38 PM
If I have a frame that fits the whole screen with an int value of (1,0) and (1,0) then where would I place my text button using int values to make it center on any screen?
Report Abuse
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
14 Aug 2015 07:39 PM
Oh and thank you for your help so far.
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
14 Aug 2015 07:40 PM
.5,.5
Report Abuse
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
14 Aug 2015 11:32 PM
Would frame size effect that though?
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
15 Aug 2015 12:24 AM
yes
so adjust by half the frame size

Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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