# Game over problem

**URL:** <https://forum.kirupa.com/t/game-over-problem/241198>\
**Category:** Uncategorized\
**Created:** [October 10, 2007, 8:51pm UTC](https://forum.kirupa.com/t/game-over-problem/241198 "2007-10-10T20:51:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![la\_Swear](https://avatars.discourse-cdn.com/v4/letter/l/ecae2f/32.png) [@la\_Swear](https://forum.kirupa.com/u/la_Swear)\
**Post date:** [October 10, 2007, 8:51pm UTC](https://forum.kirupa.com/t/game-over-problem/241198/1 "2007-10-10T20:51:03Z")

</div>

Folks,

I have a little code that looks like this:

```auto

if (lifeCount == 0) {
    gotoAndStop("gameOver");
}

```

lifeCount tracks collisions with errors, and basically  
keeps track of how many “lives” you have.

it works fine talking to the txt variable.

now I want this if statement to work…hmmmm?
