# Health bar

**URL:** https://forum.kirupa.com/t/health-bar/181100
**Category:** Uncategorized
**Created:** [March 6, 2006, 2:53pm UTC](https://forum.kirupa.com/t/health-bar/181100 "2006-03-06T14:53:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![makubex](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/makubex/32/2208_2.png) [@makubex](https://forum.kirupa.com/u/makubex)
#### Post date: [March 6, 2006, 2:53pm UTC](https://forum.kirupa.com/t/health-bar/181100/1 "2006-03-06T14:53:15Z")

</div>

hi  
i am making a game i need help in health bar,  
when i reduce the health, it gets reduced on both ends. i just wanted it to reduce from the right.  
i used the following code on the health bar object,

onClipEvent(enterFrame){  
\_width=\_root.health;  
if(\_root.health\<0){  
\_width=0;  
}  
}
