STEP 15: When the player clicks on the shark, we don't want to wait 2 seconds for a new sprite to appear.

We can make a new sprite appear right away by using the commands from our interval event in the click event.

To copy/paste, highlight the text you want and press ctrl+c. Click where you want the text to go and press ctrl+v.

  • Go back to your interval event and copy every line of code inside the event (from rand_x to fish.go_to() ).
  • Paste them inside your click event. They should have only a green block ···· in front of them.

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)