# Stop game

**URL:** <https://forum.kirupa.com/t/stop-game/14270>\
**Category:** Uncategorized\
**Created:** [February 24, 2003, 1:36pm UTC](https://forum.kirupa.com/t/stop-game/14270 "2003-02-24T13:36:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fried](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@fried](https://forum.kirupa.com/u/fried)\
**Post date:** [February 24, 2003, 1:36pm UTC](https://forum.kirupa.com/t/stop-game/14270/1 "2003-02-24T13:36:06Z")

</div>

The game Iam busy with, it keeps score how do I get the game to stop when it reaches a certain score?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 24, 2003, 1:44pm UTC](https://forum.kirupa.com/t/stop-game/14270/2 "2003-02-24T13:44:53Z")

</div>

you have to be more specific.

or better: post your fla here.

Cheers :bounce:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 24, 2003, 2:07pm UTC](https://forum.kirupa.com/t/stop-game/14270/3 "2003-02-24T14:07:59Z")

</div>

say when the score reaches 100, I want the game to stop.At the moment it just carries on and on.I don’t have the source code with me at the mo, but I use  
\_root.total = \_root.total + 100  
to keep the score ticking.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 24, 2003, 2:14pm UTC](https://forum.kirupa.com/t/stop-game/14270/4 "2003-02-24T14:14:43Z")

</div>

You test the score onEnterFrame with an _if_. Now I don’t know what you have to do to stop your game. As guig0 said, you’ll have to be more specific. \<:}
