# Health bar

**URL:** <https://forum.kirupa.com/t/health-bar/77146>\
**Category:** Uncategorized\
**Created:** [January 25, 2005, 12:43am UTC](https://forum.kirupa.com/t/health-bar/77146 "2005-01-25T00:43:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KmanCat](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kmancat/32/1059_2.png) [@KmanCat](https://forum.kirupa.com/u/KmanCat)\
**Post date:** [January 25, 2005, 12:43am UTC](https://forum.kirupa.com/t/health-bar/77146/1 "2005-01-25T00:43:54Z")

</div>

I need help with my health bar in a game i’m making, I want to make it so that when your health reaches 0 the movie goes to a frame that has all the play again junk on it, but it doesn’t work. Any suggestions? here is the code I’m working with:  
your\_health = 100  
\_root.Health = your\_health  
if (your\_health == 0) {  
gotoAndStop (10);  
}  
:puzzle:
