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