Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I Ensure my ScreenGUIs are Consistent Across Screen Sizes?

Asked by 4 years ago
Edited 4 years ago

I am making a game with many ScreenGUIs, frames, and frames within other frames. How would I go about making sure all of them adjust to accommodate different screen sizes? I need it to work for things that aren't necessarily touching edges or corners either. Thanks in advance.

2 answers

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Scaling size instead of offsetting it. The scale is the first parameter of both Size and Position, setting the scale to 0.5 will make the object half as wide as the screen. I assume you offset instead of scale them so it might look a bit weird for different devices.

This is a visual representation of the properties:

(X Scale, X Offset, Y Scale, Y Offset)

One thing to keep in mind is that Text has a max size so it wont enlarge past a certain point.

Ad
Log in to vote
0
Answered by
Vxpper 101
4 years ago

Like thé answer above, instead of the position being {0,250,0, 100}, change the 0’s to the second value if that makes sense Here’s an example of what I’m trying to say: {0.25,0,0.1,0}

Answer this question