How do I fix this UI issue?

I am making a health bar, and I have a style I like, but I am coming across an issue. whenever the health bar gets low, it starts to look weird.

image 1 (full health):

image 2 (low Health):

1 Like

Try set the initial of the UI size to full health bar.

Instead of sizing, move the bar instead.

[ if u need a demo ask me! ]

(Hope you understand, idk how to explain)

I don’t understand, a demo would be nice!

(thanks for helping)

1 Like

I will show when i got into my pc!

1 Like

Could i have a quick view of ur UI layout?


does this work?

bar and health are the main importance

I was gonna send a video but it got too big, and i dont think it can help out much.

Try have this set up. not sure if it works…
Here’s the set up:
image
Frame - Your Health Bar
Cover - ClipDescentdants [ MAKE SURE Background Transparency is 1 ]
Bar - Your Bar [ the one that covers ur health bar ]

Settings:
Frame [ Health Bar ] - However you like
ClipDescendants [ Cover ] - Same size as health bar
Bar - Same size as health bar as well

How it should work:

Frame [ Health Bar ] - Place it wherever you like
ClipDescendants [ Cover ] - SAME position as health bar
Bar - OPPOSITE Position [ left side ] - make sure players can’t see the bar if their health is 0%

Make the Bar move to the right to fill up the health bar instead of sizing to fill up the health bar. [ Hope it’s clearer to understand ]

Give it a try! [ Really hope this helps! ]

If theres problems and you dont understand anything pls speak up!

1 Like

I see what you are saying, but you get this very gross cut


is there any other possible solutions?

1 Like

Apologies, i don’t understand the gross cut meaning… Are you saying the straight line in the middle?

1 Like

yes, I would perfer if it was not there

How would you like it to be? Like the Health Bar edge? Like this kind of shape > ?

like this. a V shape would work though

1 Like

Not sure if it works but in your script you could try sizing + positioning at the same time

However make the initial sizing 25% and positioning just nice at the left edge of the health bar.

1 Like

If you don’t want a sharp cut, you can use a UIGradient to slowly tune down the transparency. The image is irregular, so resizing it smoothly wouldn’t work out.

1 Like

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