WARNING: This program has a bug, which means we need to fix it! This bug is a logic error.
RULE: The name in front of the event handler is the sprite that is assigned to the event. Inside the event, the assigned sprite is called sprite and all other sprites are called hit_sprite.
- Click Run and look at the stage to see what's wrong.The ball is supposed to go in the basket, not the player!
- Debug the program by assigning the collision event to the player sprite.
To navigate the page using the TAB key, first press ESC to exit the code editor.