### ----------------------------------
### MINIMUM TECHNICAL REQUIREMENTS ###
### ----------------------------------
# 1) Choose a background image
stage.set_background_color("lightblue")
# 2) Choose a sprite.
sprite = codesters.Sprite("present6")
# 3) Add at least 3 actions or say commands
# to give your program a story
sprite.say("click me to open")
sprite.move_up(15)
sprite.move_down(15)
stage.wait(.1)
sprite.move_up(15)
sprite.move_down(15)
stage.wait(.1)
sprite.move_up(15)
sprite.move_down(15)
stage.wait(.1)
sprite.move_up(15)
sprite.move_down(15)
# 4) Add a click event with actions and
# say commands inside the click event.
sprite.say("click me to open")
def click(sprite):
sprite.hide()
sprite = codesters.Sprite("person10")
stage.set_background_color("pink")
sprite.say("Surpise! Happy Birthday!")
# add other actions...
sprite.event_click(click)
-
Run Code
-
-
Stop Running Code
-
Show Chart
-
Show Console
-
Codesters How To (opens in a new tab)