STEP 13: Collision Events cause a set of commands to run when an object touches (collides with) another object.
- Change the name at the front of the the event handler to spaceship.
INSIDE the collision event, sprite refers to the sprite assigned in the event handler. In this example, spaceship.
INSIDE the collision event hit_sprite refers to any object the sprite collides with. In this example, astro and ufo.
To navigate the page using the TAB key, first press ESC to exit the code editor.