Activity: Back to Origin
I'M FINISHED WITH HOUR OF CODE!
img

STEP 12: All done! Let's send our sprite back to where it started!

  • Click on . Drag Glide To into the bottom of your program.
  • Change the coordinates in the .glide_to() command to get back to the origin, (0, 0).

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) sprite.glide_to(5, 1) sprite.glide_to(0, 6) sprite.glide_to(-7, 2) sprite.glide_to(-7, -4)
Support