STEP 10: We have our knight and dragons moving, but we want the knight to defeat the dragons.

  • In , drag in Collision to the bottom of your program.
  • Then, delete the line that says sprite.go_to(0,·0) inside the collision event.
  • Now our dragons will go away once our knight collides with 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)