STEP 16: We also want to reset the timer to 30 when the dino hits a meteor.

  • Go to and drag Global Variable into the collision event.
  • Change the variable to timer.
  • Use Integer Variable to set the timer equal to 30 again.

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)