moving away from code snippets
I have a basic knowledge of Animate, and so far have relied on code snippets to achieve what I need. However I am developing a game where the user has to click on a choice of 14 buttons in the correct sequence to progress thought the level. The number of clicks needed in each sequences different. I am currently doing this by:-
stop();
Button_1.addEventListener(MouseEvent.CLICK, MoveOnBTN1);
function MoveOnBTN1(event:MouseEvent):void
{
gotoAndPlay(19);
}
stop();
Button_2.addEventListener(MouseEvent.CLICK, MoveOnBTN2);
function MoveOnBTN2(event:MouseEvent):void
{
gotoAndPlay(24);
}
The other buttons turn red if they are clicked on to show the incorrect sequence.
Is there a way of keeping track of the correct clicks and showing the user a percentage of correct clicks at the end of each level?
I also have a help button, this helps the user click the next button in the sequence, would there be a way of showing how many times the help button is used?
Sorry that this is so very specific!
Thank you in advance for any help.
