STEP 8: We need to make different things happen depending on what the ball hits!

INSIDE the collision event, sprite refers to the sprite assigned in the event handler. In this program, that's ball!

INSIDE the collision event hit_sprite refers to anything the sprite collides with. In this program, paddle or brick.

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)