STEP 14: Let's celebrate our arrival with a flip!

  • Go to . Drag Turn Left to the bottom of your program.
  • Change the number of degrees to 360.

The turn left command rotates a sprite a number of degrees. The 360 causes the UFO to turn in a circle.

stage.set_background("space") sprite = codesters.Sprite("ufo") sprite.set_size(0.4) sprite.go_to(-200, -200) sprite.pen_down() sprite.glide_to(-100, -100) def collision(sprite, hit_sprite): hit_sprite.hide() # add any other actions... sprite.event_collision(collision) sprite.set_speed(2) sprite.glide_to(150, -100) sprite.glide_to(150, 100) sprite.glide_to(-150, 200) sprite.glide_to(-200, 50) sprite.glide_to(-200, -200)