STEP 15: If the ball falls through the floor, the user has lost. Let's check that condition every 2 seconds!

  • From add Interval Event to the very BOTTOM of the program (unindented!).
  • In the interval event, find and delete the line that says ····sprite.turn_left(15)¬.
  • From add Get y indented inside the interval event.
  • Change my_var to ball_off and sprite to ball.

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)