If the ball hits the ground on the hedgehog's (player 1) side than, the kitten (player 2) wins!

  • Change the second if statement to test for colliding with "purple". Delete the .say() command.
  • Inside the second if statement, have the sprite Go To center stage and set Sprite Gravity Off.
  • Use Show Sprite to show the win_text.
  • Use Set Text to change win_text to "Player 2 wins!"

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)