# Help with game

**URL:** <https://forum.kirupa.com/t/help-with-game/5005>\
**Category:** flash\
**Created:** [August 28, 2002, 4:11pm UTC](https://forum.kirupa.com/t/help-with-game/5005 "2002-08-28T16:11:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![olympiakos7](https://avatars.discourse-cdn.com/v4/letter/o/278dde/32.png) [@olympiakos7](https://forum.kirupa.com/u/olympiakos7)\
**Post date:** [August 28, 2002, 4:11pm UTC](https://forum.kirupa.com/t/help-with-game/5005/1 "2002-08-28T16:11:33Z")

</div>

I’m putting a game together where you have to find 5 hidden objects on the screen within a time limit.  
when you click on the object a red circle appears around it, showing you that you’ve found it.

there is a blank button over each hidden object and the target contains two keyframes, the first blank and the second the red circle. the code is as follows

on (release) {  
tellTarget (“three”) {  
gotoAndStop (2);  
}

My question is what actionscripting do I need to tell the game that if all 5 objects are found to procede to the next section.

I tried this but it doesn’t seem to work (3) being the next section

if (three.\_currentframe == 2) {  
gotoAndPlay (3);  
}

Any help or tutorials would be greatly apreciated

---

<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:** [August 29, 2002, 8:17am UTC](https://forum.kirupa.com/t/help-with-game/5005/2 "2002-08-29T08:17:49Z")

</div>

Check the score tutorial on this site. And any reason why you’re checking the current frame?

pom :asian:

---

<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:** [August 29, 2002, 9:12am UTC](https://forum.kirupa.com/t/help-with-game/5005/3 "2002-08-29T09:12:17Z")

</div>

You just need a counter variable. Every time one of the buttons is clicked correctly, increment the counter by 1. When it equals 5, then move the movie on to the next screen.

---

<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:** [August 29, 2002, 1:20pm UTC](https://forum.kirupa.com/t/help-with-game/5005/4 "2002-08-29T13:20:40Z")

</div>

thanks that’s so simple, I forgot about Occam’s Razor 🙂
