STEP 8: Let's keep picking up objects on the stage!

  • Run the program to see the snowflake on the stage!
  • Click on . Drag Glide To to the bottom of your program.
  • Change the coordinates in the .glide_to() command so that your sprite reaches the snowflake!
  • Remember, coordinates are written with the x-coordinate first and y-coordinate second, like this: (x, y).

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("winter") sprite = codesters.Sprite("snowman") sprite.set_size(.5) sprite.pen_down() sprite.glide_to(5, -6) def collision(sprite, hit_sprite): hit_sprite.hide() # add any other actions... sprite.event_collision(collision)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)