How to make progressbar?

Hi,
I need to make progressbar of custom shape, how to do this? (bec normally, i make progressbar, by scaling frame)

2 Likes

You could use a sprite sheet and iterate through the images to make a animation.

This could help you:

1 Like

No, i dont want circular progressbar, i need classic progress (hp) bar, but not as rectangle, but as custom shape

1 Like

What shape are you looking for?

1 Like

I need to make hpbar as in WoW


(left-down)

You could achieve that effect by using Clip Descendants in the frame property.

Basically what you do is you have a imagelabel as the desired shape, then you have just a frame inside which is the bar, in this case you might want it green.
Then you turn Clip Descendants on in the image label. And it should clip out the square and fit it into the shape. I believe you have to make the ZIndex higher on the frame.

Then you just use :TweenSize or whatever.

I have not tested it, so it might be incorrect.

5 Likes

and when i need, to render damage by gray, do i need to create another imege and put it under it?

1 Like

What do you mean? Could you explain it in another way.

1 Like

I need to make empty part of progress bar grey, do i need to make another image for it?

1 Like

Just edit the ImageLabel’s Color to grey or whatever you have as the shape.

1 Like

If you need a specific tutorial on how to do this, refer to the following post:

Essentially what you’re doing is placing two of the same shape layered over top of each other, but one is in a frame that clips the topmost image to give it the impression of decrease.

1 Like

I already have it

1 Like

Wait can you show your explorer for what it looks like? It didn’t work for me when I tried

Ok nevermind I figured it out :stuck_out_tongue: You basically need two of the same image but one of them gets clipped by being a child of a frame with ClipsDescendants enabled. The frame needs higher ZIndex as well. It uses the exact same method as this: Rounded Loading Bar - #2 by Elttob