PREVIEW: Before we get started making our very first program, let's look at an example.

  • Click Run to see an example of the program you will create today.
  • This program has a background image and a sprite or character that moves and is clickable.
  • Watch the teacher move, then click on the teacher once they stop moving to see what they do!
  • Click Submit and Next to continue.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("schoolentrance") sprite = codesters.Sprite("person2_masked") sprite.glide_to(-200, -170) sprite = codesters.Sprite("person3_masked") sprite.glide_to(200, -155) sprite = codesters.Sprite("person7_masked") sprite.set_speed(2) sprite.move_down(120) stage.wait(1) sprite.set_say_color("brown") sprite.say("Click on me!") def click(): sprite.say("Remember to social distance!") sprite.move_up(100) sprite.turn_right(360) sprite.move_down(100) sprite.say("Stay healthy and wear a mask!") sprite.set_y_speed(5) sprite.event_click(click)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)