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?
Pls help, thanks!
1 Like
Sol-i
June 22, 2021, 2:46pm
2
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
system
Closed
July 23, 2021, 12:50am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.