Activity: To the Left
I'M FINISHED WITH HOUR OF CODE!
img

STEP 4: Let's move the sprite to the left side of the screen.

The stage is a coordinate plane, with (0, 0) at the center. We use coordinates to control where objects appear on the stage. In this activity, you'll change the x-coordinate to make the sprite appear close to the left side if the stage.

  • Go to and drag out Go To. Drop it at the bottom of your program.
  • Change the first number (the x-coordinate) in .go_to() to -200.

stage.set_background("space") sprite = codesters.Sprite("spaceship") sprite.set_size(0.5)
Support