STEP 16: The event handler in the collision event identifies the sprite and the hit_sprite in any collision. Our sprite is the alien. We'll use hit_sprite inside the collision event to refer to any sprite that our alien collides with.

  • In GRAPHICS, go to and drag Remove Sprite inside the collision event.
  • Change sprite in the .remove_sprite() command to hit_sprite.
  • From , drag Say inside the collision event. Change the string to "I got one!"

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)