STEP 19: Delete the default .say() command from inside the if statement.

Set up the following commands to run if the hero collides with "kitten":

  • Use Remove Sprite to remove the hit_sprite from the stage.
  • Use Add Value to add 1 to score.
  • Use Update Display to update the score_board with the new score.

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)