Search Tutorials
Evaluating the Guess
Set the label to "Calcguess" Add a new keyframe and label it "EvalGuess", here we will evaluate the user’s guess by going through the following actions:
If (/:hmGuess > /:Num)
Set Variable: "fback" = "Too High"
End If
If (/:hmGuess < /:Num)
Set Variable: "fback" = "Too Low"
End If
If (/:hmGuess = /:Num)
Set Variable: "fback" = ""
Set Variable: "correct" = /:Num
Go to and Stop ("quit")
End If
The Quit frame will be made later and jumped to when the guess is correct, also displaying the correct number by showing the "correct" variable. As you might have guessed: hmGuess holds the player’s guess. Insert a new layer, name it "Menu", as it will hold the two user-choice buttons, and a Stop option.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|