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):
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):
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)
I will show when i got into my pc!
Could i have a quick view of ur UI layout?
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:
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!
Apologies, i don’t understand the gross cut meaning… Are you saying the straight line in the middle?
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 > ?
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.
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.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.