STEP 8: Let's have the knight react to seeing a dragon!

  • Change the dragon sprite's variable name from sprite to dragon.
  • From add Say for Time indented inside the function.
  • Change the string in .say() so that the knight says "Oh no, a dragon!"

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)