STEP 18: We want the player to score a point when the hero collides with a kitten.

  • Change the variable name of the .get_image_name() command to name.
  • Change the if statement to test if name is equal to "kitten".

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)