STEP 9: Let's add more commands to our loop to make the sprites move!

  • Click and drag Move Forward indented inside the loop.
  • Change the integer argument in .move_forward() to 100.
  • Drop Glide To indented inside the loop and change the coordinates to (115, -50).

Click Run and notice that all the commands indented in the loop repeat for every sprite created in the loop!

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)