STEP 14: Now let's use our variable to jump!

  • Click the GRAPHICS tab, then and drag Move Up to the bottom of your program.
  • Drag Move Down to the bottom of your program too.
  • Change the integer argument in both commands from 50 to jump_integer.
  • Run your code and watch your sprite jump when the story is done!

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)