STEP 13: Let’s make it so that the user input can be used to make the sprite move!

  • Click the LOGIC tab, then and drag Convert to Integer to the bottom of your program.
  • Change the variable name to the left of the = sign from my_var to jump_integer.
  • Change the variable in the int() parentheses from my_var to jump.

jump_integer is storing the user's input as an integer! We can now use this variable as an integer argument.

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)