STEP 14: What happens if the player runs out of guesses? Unfortunately, they lose!

  • In LOGIC, click on and drag out if OUTSIDE of your loop.
  • Then, in GRAPHICS, click on and drag in Say INSIDE your new if statement.
  • Change the text inside the .say() command from "I am a sprite." to "You took too long!".

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)