STEP 9: Let’s use code to have our sprite do a flip!

  • Go to and drag out Turn Left. Drop it at the bottom of your program.
  • Change the integer argument in the .turn_left() command to 360.

The .turn_left() command turns the sprite a certain number of degrees. Remember, the number of degrees in a full circle is 360.

stage.set_background("concert") sprite = codesters.Sprite("person1") sprite.set_speed(3) sprite.move_down(100) sprite.flip_up_down() sprite.move_right(150) sprite.move_left(200) sprite.flip_up_down()