Learn with tiles › 21
The scoreboard
Keep showing a variable's value in the corner of the scene.
1
A speech bubble soon goes away. A score should stay on the screen.
The Scene: show (name): (value) on the scoreboard tile keeps showing a name and a value in the corner of the scene. If you show the same name again, only the value changes.
Show the scoreboard after you increase the score, so the new score appears.
To do After increasing the score, show the value of the variable score on the scoreboard with the name Score.
Loading tiles…
2
Variables are powerful when you use them with "if". You can ask what the score has become.
( ) == ( ) is true when both sides are the same.
To do When the score becomes 3, say I won! and play the win sound.
Loading tiles…