This content has been marked as final. Show 5 replies
what are you trying to accomplish?
A simple game: Like the old arcade's "Whack-a-Mole" with 9 "tubes" with objects randomly ascending and descending in each tube. The first three tubes on the left are dedicated to one object, the three middle tubes to a second object, and three right tubes to a third object. The user employs the mouse to "strike" any ascending object (at frame 10 of 20 frames) to score a "hit". I want a timer limit on the game, hence the timer function/variable and I want the strikes to be counted and incremented into the respective dynamic text boxes. The dynamic text boxes are named for the score display (hc_txt.text, jm_txt.text, bo_txt.text) the objects are distinctly named (h0, j1, o2, h3, j4, o5, h6, j7, o8).
So what I am trying to do is have the "scores" (hits) counted and posted to the owner dynamic text boxes and the timer function wind down and end the game.
Hope this is clear and thank you for the interest.
for you countdown timer use setInterval().
for your scoring you should be using a hitTest() in a mouseDown listener.
Thank you very much for the information.