STEP 6: Let's prepare to create the UFOs that bounce back and forth across the stage.

  • Go to and drag Set Bounce to the bottom of your program, outside of the loop.
  • Change the integer argument in the .set_bounce() command to 1.
  • Go to and drag Integer Variable to the bottom of your program.
  • Change the variable name to y. Change the value to -150.

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)