Help with positioning Custom Frames and Bar

So this has been bugging me for quite a while now.
So I have this custom gui here
image

Looks good, but when I try Emulation, it looks like this:
(on Amazon Fire HD 10 (2019) 1280x800)
image

Yes there is a frame behind this.

I don’t want to use UIAspectRatioConstraint because I have another hotbar UI under it and if I do they would spread apart. For example:

(Without UIAspectConstraintRatio)
image

(With UIAspectConstraintRatio)
image
Looks fine but they are now far from each other and I don’t want that.

I made it so both objects (The blue frame and the Outline Frame) are similar in size (With UIAspectConstraintRatio)


(Without UIAspectConstraintRatio)
image

Also the image (Custom frame)'s ScaleType is set to Fit, because if I didn’t then it would look squashed on some devices.

The blue bar is just a normal Frame, resized small enough to not overlap the custom frame.

Does anyone know how to fix this annoying issue while not using UIAspectRatioConstraints? I know this is possible since games like Deepwoken have a custom health bar and they were able to do it perfectly… Help is appreciated.

You can set the SizeConstraint to RelativeYY, and resize the frame

Ex:
{0.3, 0, 0.1, 0}

1 Like

Words cannot express how thankful I am to you. Respect

1 Like

Also I am having another issue. So it looks fine until I place the bar on the bottom left frame of the screen and use Emulation, it will look like this. How do I fix it?
image

Without using Emulation:

Nevermind. I just had to use a UIAspectRatioConstraint

Nevermind I fixed it somehow.

.

You can move the AnchorPoint to the bottom left

Here’s a plugin I made a while back that can easily help with moving it

1 Like

Thanks. I’ll try it out

Max Chars

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.