WARNING: This program has a bug, which means we need to fix it! This bug is a logic error.
RULE: The collision even takes two parameters, sprite and hit_sprite. We choose the sprite parameterthat gets passed in with the event handler. The other parameter, hit_sprite, whatever the main sprite hits.
- Click Run and watch the stage to see what's wrong. Oops! The present should disappear, not the penguin!
- Debug the program so that the purple_present disappears.
- Change the .remove_sprite() command so that it is assigned to the hit_sprite.
To navigate the page using the TAB key, first press ESC to exit the code editor.