STEP 15: We want to throw away these trash sprites. Let's click on the trash to collect it!

  • Go to GRAPHICS and . Drag out Sprite Click so that it is all inside the for loop.
  • Delete this code from the click event: sprite.say("Hello,·name")
  • From , drag out Glide To so that it's inside the click event. (It must be indented three times!)
  • Change the coordinates so that the sprite glides to (0, -60). Click Run and try clicking the trash sprites!

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)