How to direct mini game where you have to tap overlays in a specific sequence to win

I have a mini game where there are three tappable buttons that I need the player to tap in a specific sequence to win. For example (tap button 1 twice, tap button 3 once, tap button 2 thrice, and tap button 1 once again). At any point if they press the wrong button, they will be redirected to the start of the game.

I have no idea how to code this, like, where do the labels go? Do I use a point system to remember the options? :frowning:

Pls help, thanks!

1 Like

That just requires basic choice coding and some labels. it goes like this:

label Start_miniGame
NARRATOR
Make the right choice.
tappable ā€œButton 1ā€{

sound correct_ding

goto MiniGame_secChoice

}ā€œBoutton2ā€

sound wrong_buzz

NARRATOR
Oh uh, wrong choice.

NARRATOR
Why donā€™t you try that again?

goto Start_miniGame

}ā€œBoutton3ā€{

NARRATOR
Oh uh, wrong choice.

NARRATOR
Why donā€™t you try that again?

goto Start_miniGame
}

label MiniGame_secChoice

NARRATOR
Make a second choice.
tappable ā€œButton 1ā€{

sound correct_ding

goto MiniGame_trdChoice

}ā€œBouton2ā€

sound wrong_buzz

NARRATOR
Oh uh, wrong choice.

NARRATOR
Why donā€™t you start again?

goto Start_miniGame

}ā€œBoutton3ā€{

NARRATOR
Oh uh, wrong choice.

NARRATOR
Why donā€™t you start again?

goto Start_miniGame
}

label MimiGame_trdChoice

NARRATOR
Make a third choice.
tappable ā€œButton 1ā€{

sound wrong_buzz

NARRATOR
Oh uh, wrong choice.

NARRATOR
Why donā€™t you start again?

goto Start_miniGame

}ā€œBouton2ā€

sound wrong_buzz

NARRATOR
Oh uh, wrong choice.

NARRATOR
Why donā€™t you start again?

goto Start_miniGame

}ā€œBoutton3ā€{

sound correct_ding

goto MiniGame_frthChoice

}

ā€¦

And so on, you get the idea.

2 Likes

Thank you!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.