I cant figure out how you make a good health bar

How do you make a health bar that whenever touched goes down by alittle
plz post the codes if u can tell me how THX!! and also, i wanna make a BAR not just numbers.

Game Editor discussion board
http://game-editor.com/forum/
healtbar.animpos+=1;
if(healtbar.animpos>healtbar.nframes)
{
Destroy event actor thingy...
}