Use the health slider to adjust the health. Use the y slider to see how the health bar works.
I made this health bar for the boss in my Touhou project. It's completely smooth with no pen and no base. A smooth health bar can be made using pen, but that wouldn't allow the bar to be layered in front of sprites. Griffpatch did make a smooth health bar for one of his Youtube tutorials, but that would require a base to cover the right side of the health bar once it reaches below 50%. I personally didn't want to have a base. Therefore, I created a health bar using a different approach. Firstly, the bar is split into a left part and a right part. The left part stays static while the right part moves into the left part, creating the effect of a shrinking health bar. This will work until health is below 50%, so in order to prevent the right side from clipping out of the left side, both the left and right bar will be cut in half. Use the y slider to see it in action. This process will repeat when health is below 25%, 12.5%, and so on until the bar is around 1 pixel long, in that case any further reduction becomes negligible.