STEP 14: The game isn't over yet! We have to reset the the x and y speeds to restart the meteors.

Make sure that all the commands you are using to reset the meteors are INSIDE the collision event with a ····.

  • Inside the event, use Random Integer to create a variable called new_x_speed with a range of (2, 5).
  • Use another Random Integer command to create a variable called new_y_speed with a range of (2, 5).


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)