STEP 4: In this activity, we'll add a text object. By default, it's name is sprite , just like our main character.

  • Go to and drag out Text in Color.
  • Change the name before the = to text. Now, we have unique names for both objects on the stage!
  • Run your program to see the text appear.

The grey text above the code is called a comment. Comments are not read by the computer. They describe the code.

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

stage.set_background("park") sprite = codesters.Sprite("person3") sprite.glide_to(-100, 50)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)