# Mario Game A few problems can someone plz help

**URL:** <https://forum.kirupa.com/t/mario-game-a-few-problems-can-someone-plz-help/68552>\
**Category:** programming\
**Created:** [October 26, 2004, 9:31pm UTC](https://forum.kirupa.com/t/mario-game-a-few-problems-can-someone-plz-help/68552 "2004-10-26T21:31:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zendo49](https://avatars.discourse-cdn.com/v4/letter/z/ce7236/32.png) [@zendo49](https://forum.kirupa.com/u/zendo49)\
**Post date:** [October 26, 2004, 9:31pm UTC](https://forum.kirupa.com/t/mario-game-a-few-problems-can-someone-plz-help/68552/1 "2004-10-26T21:31:16Z")

</div>

Hey i have been making a mario game for the past few days.  
i am having trouble with his life.  
i can make his life go down with this code

if(this.hitTest(\_root.mario)) {

\_root.life -= 1;

}  
that works fine but when his life goes to zero  
look

if(\_root.life == 0) {

gotoAndStop(“GameOver”)

}  
i am trying to get it to goto gameover is his life points goto zero  
can someone plz help me.  
Thanks
