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 moves by itself?

Previous Thread :: Next Thread 
TheHidden0892 is not online. TheHidden0892
Joined: 07 Nov 2012
Total Posts: 285
12 Nov 2015 03:38 PM
Hello, I am having issues with my custom made Gui, I have everything set to where I want it, join in a server, Boom, everything in the gui's is out of place or messed up. Is there a solution?
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
12 Nov 2015 03:39 PM
Are you using Scale when you size and position the guis? Don't use offset. Use scale.
Report Abuse
benthanh123 is not online. benthanh123
Joined: 27 May 2010
Total Posts: 567
12 Nov 2015 03:39 PM
Yeah use Scale.
{scale,offset},{scale,offset}
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
12 Nov 2015 04:26 PM
Clarification:

Using Scale automatically scales itself based on the player's screen size available.

Using offset keeps it in that position regardless.
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
12 Nov 2015 04:43 PM
As they've said, you're likely using pixel size opposed to resolution percentage scaling.

UI elements use a UDim2 value type to resize/reposition themselves based off of the percentage of the client's monitor, plus or minus additional pixels. Using pixels is good for minigames with collision detection or that require a specific size of elements in order to work, but scaling is typically better as it allows the ui to look the same for every player that sees it.

Size = {0.25, 0, 0.25, 0} would make a box that takes up a sixteenth of the character's screen, {1, 0, 0.5, 0} would take up the top half of their screen. Experiment around with it until you can get it looking the way you want.

It may also be useful to note that those percentage values should be sized by multiples of [1/(2^x)], meaning you want them to be evenly divisible by numbers such as 0.0625, 0.03125, or 0.015625. Scale values are treated as NumberValues, so setting them to 0.1 would give them this odd value of 0.10003052, or something similar. This is no longer visible as Roblox now shortens the values in the property explorer to only show the first three decimal digits, but it still exists.

kthxbai.
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