STEP 12: Let's ask the user for input that we can use to make the sprite move!

  • Go to and drag out another Wait. Drop it at the bottom of your program.
  • In , drag out another Ask and drop it at the bottom of your program.
  • Change the name of the input variable from choice to jump.
  • Change the string in .ask() to "How high should I jump? (Enter a number from 50 to 200)".

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)