• Drag the Space Bar event into your program and delete the .jump() command.
  • Inside the event, create a Random Integer named serve with a range of -6 and 6.
  • Inside the event, Set x Speed of the ball using the random variable serve.
  • Turn Sprite Gravity On for the ball and use Hide Sprite to hide start_text.

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)