STEP 12: We'll use the Space Bar to control the hero.

We'll use an empty string in the .say() command to "reset" your sprite so it says nothing.

  • Go to and drag Space Bar into your program.
  • Change the .jump() command to make the hero jump 15 pixels when the space bar is pressed.
  • Drag Say inside the event. Have the hero say an empty string (" ").

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)