### ---------------------------------- ### MINIMUM TECHNICAL REQUIREMENTS ### ### ---------------------------------- # 1) Choose a background image stage.set_background("park") # 2) Choose a sprite. sprite = codesters.Sprite("recyclingbin") # 3) Add at least 3 actions or say commands # to give your program a story sprite.move_down(150) sprite.say("Remember to recycle!") stage.wait(2) sprite = codesters.Sprite("steelcan") sprite.go_to(-200, -200) sprite.say("Click on me!") # 4) Add a click event with actions and # say commands inside the click event. def click(sprite): sprite.say("Wheee!") sprite.move_up(100) sprite.move_right(200) sprite.hide() sprite.event_click(click) sprite = codesters.Sprite("sodacan") sprite.go_to(200, -200) sprite.say("Click on me!") # 4) Add a click event with actions and # say commands inside the click event. def click(sprite): sprite.say("Wheee!") sprite.move_up(100) sprite.move_left(200) sprite.hide() sprite.event_click(click)
  • Run Code
  • Show Console
  • Codesters How To (opens in a new tab)