Use GFILL. Then when you lose health, decrement an amount from the length of GFILL. Since health will likely be 100 though and your GFILL coordinates will likely be entirely different, you should be able to figure out the math for that I'll let you figure that part out.