# Help with game over screen \[AS2.0\]

**URL:** <https://forum.kirupa.com/t/help-with-game-over-screen-as2-0/319460>\
**Category:** flash\
**Created:** [February 21, 2011, 6:01pm UTC](https://forum.kirupa.com/t/help-with-game-over-screen-as2-0/319460 "2011-02-21T18:01:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben1996123](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@ben1996123](https://forum.kirupa.com/u/ben1996123)\
**Post date:** [February 21, 2011, 6:01pm UTC](https://forum.kirupa.com/t/help-with-game-over-screen-as2-0/319460/1 "2011-02-21T18:01:22Z")

</div>

I’m making a game where you start with 3 lives, and every time you do something wrong, you lose a life. How could I make it so that when the dynamic text box reaches zero, that it goes to and stops on another frame? Here is the code I have so far:

```auto
onClipEvent(enterFrame){
	if(_root.lives==0){
		gotoAndStop("Game over")
	}
}

```
