I'm trying to make an HP Bar and found 2 answers
that helped me, but it's not exactly what I want because my texture is not a rectangle, it is a parallelogram, like this,
So when I change the width of the BeginGroup, since it uses a rectangle, the texture border becomes vertical. Is there a way to mask the texture but keeping the border like a parallelogram?
This is the code I'm using (the variable redBarWidth is modiffied when the character receives damage or gains hp)