I have a TextureProgress node that displays a health bar(image below) and it's bilinear, meaning it increases up and down according to the player's health. However, my bar has rounded edges, and I want it to always display the rounded edges, no matter what the value the health bar displays.
I am trying do achieve this through Stretch Margins and by using the Nine Patch Stretch type of stretch, and the result is that when the value is not full, the rounded edges disappear.
Godot 3.6.
the texture is 8x64px
value ranges from 0 to 100.

    DaveTheCoder
    But doesn't draw() draw shapes on screen? how can I use it to draw a texture? and how do I integrate this with my textprogress node?

      DaveTheCoder
      but let's say the texture for my health bar is a more visually complex texture and I really need to use Stretch Margins to achieve this. How would I use them correctly?

      I'm not familiar with Stretch Margins, so I can't help you with that.