How do i do this?

I know how to make a Health system using letters like
Health: 100

I was wondering how would i do this but like its a red potion and when you get hit it drains it?

a simple mask and a layer underneah on wich you set the height.
Something like this

Cool thanks, Got it working.