STEP 13: Let's sink the second ship!

We use dot notation to join a sprite's name with the action we want it to do.

  • Click on . Drag Glide To into the bottom of your program.
  • Assign .glide_to() to bomb by changing the variable name in front from sprite to bomb.
  • Change the integer arguments in your .glide_to() command to direct your sprite to the next target.

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)