Let's make our snowflake fly around the stage when we hit the space bar!

  • Go to and drag Space Bar to the bottom of your program.

This event makes the sprite jump when the space bar is pressed. In the next activity, we'll customize the event by adding our own commands.

stage.set_background("winter") sprite = codesters.Sprite("person12") sprite.go_to(-125, -150) frosty = codesters.Sprite("snowman") frosty.go_to(100, -125) snow = codesters.Sprite("snowflake3") snow.go_to(100, 75) greeting = codesters.Text("Happy Holidays!") greeting.go_to(0, 200) greeting.set_color("yellow") def click(sprite): sprite.say("I hope your holidays are great!") sprite.turn_left(360) # add other actions... sprite.event_click(click)