Now we need to make the game end when the flappy sprite collides with a pipe.

  • Go to and drag Collision into your program.
  • Delete the commands inside the event.
  • Then go to and drag Text in Color inside the collision event.
  • Set the message, position, and color parameters to whatever you want.

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)