STEP 10: Click events run when you use the mouse to click on the sprite assigned in the event handler.

Click events have a built in parameter called (sprite). The value passed in is the name of the sprite in the handler.

  • Go to and drag Sprite Click to the bottom of your program.
  • Change the name in front of the event handler to fish.
  • Then press Run and click on the fish sprite to test the click event.

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)