# Follow on from Games: Keeping Score

**URL:** <https://forum.kirupa.com/t/follow-on-from-games-keeping-score/183319>\
**Category:** Uncategorized\
**Created:** [March 25, 2006, 7:45pm UTC](https://forum.kirupa.com/t/follow-on-from-games-keeping-score/183319 "2006-03-25T19:45:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashstar](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@flashstar](https://forum.kirupa.com/u/flashstar)\
**Post date:** [March 25, 2006, 7:45pm UTC](https://forum.kirupa.com/t/follow-on-from-games-keeping-score/183319/1 "2006-03-25T19:45:22Z")

</div>

Hi,

I have been looking at the keeping score tutorial: [http://www.kirupa.com/developer/mx/score.htm](http://www.kirupa.com/developer/mx/score.htm)  
and have produced a game where scores are added when the user gets it right.

I want to play a frame when the score reaches 5.

I have tried:

if (score == 5) {  
gotoAndPlay (144)  
}  
This doesnt appear to do anything. Any ideas? I am not sure I have put the code in the right place. (i put it on the frame)

Thanks

---

<div class="post-metadata">

**Author:** ![flashstar](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@flashstar](https://forum.kirupa.com/u/flashstar)\
**Post date:** [March 25, 2006, 8:08pm UTC](https://forum.kirupa.com/t/follow-on-from-games-keeping-score/183319/2 "2006-03-25T20:08:07Z")

</div>

if(\_root.score=5){  
gotoAndPlay (144)  
}

doesnt work either!
