STEP 16: Hm. Our sprites aren't clickable, but that's because we haven't finished our click event function!

  • In GRAPHICS, click on and drag Sprite Click inside add_click_event().
  • Delete this line of code inside the click event: sprite.say("Hello,·name").
  • In , drag Remove Sprite inside the click(sprite) function.
  • Press Run and click on the sprites. Now, they'll disappear!

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)