STEP 14: Let's make each trash sprite fall after it is created.

  • Go to and drag Set y Speed onto the next line. Change the argument from 5 to -5.
  • Remember that this code needs to be indented twice so that it is inside both the while and for loops.
  • Click Run to see how this affects the sprites! For the sprites to fall off the stage, we added stage.disable_floor() at the top of our program. (Try removing this code to see why!)

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)