STEP 16: When your score reaches 10, you win!

  • Inside the click event, use if to test if the value of score is 10.
  • Go to and drag Text in Color inside the new if statement.
  • Change the text parameters (string, x-coordinate, y-coordinate, and color) to design your own win message.
  • Go to and use Hide Sprite to hide the fish from the stage.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)