STEP 13: Let's have the sprite do a flip too! We'll need to add this command INSIDE the event block.

An event is a block of code that holds a set of commands. The user controls when the event runs by typing a key or clicking an object. Commands INSIDE an event have a green block to the left, like this: ····¬

  • Go to and drag Turn Left inside of the click() event.

  • Change the number in .turn_left() to 360.

stage.set_background("moon") sprite = codesters.Sprite("astronaut1") sprite.go_to(-125, -150) glorp = codesters.Sprite("alien1") glorp.go_to(100, -125) rock = codesters.Sprite("asteroid") rock.go_to(100, 75) sprite.say("What do planets read?") sprite.set_say_color("white") def click(sprite): sprite.say("Comet books!") # add other actions... sprite.event_click(click)