WARNING: This program has a bug which means we need to fix it!

RULE: Sprites need unique variable names. We use those names to assign actions to each sprite.

  • Click Run and watch the stage to see what happens.
  • Debug the program so that the sprite with the "toucan" image is named sam and the sprite with the "panther" image is named smokey.
  • Change the variable names in front of the .glide_to() commands so that each sprite goes to the right place.

sprite = codesters.Sprite("toucan") sprite = codesters.Sprite("panther") sprite.glide_to(-150, -50) sprite.glide_to(150, -50)