STEP 9: Let's position our asteroid on the stage.

  • Go to and drag Go To to the bottom of your program.
  • Assign the command to rock by changing the name in front of .go_to().
  • Change the x-coordinate (first number) to 100.
  • Change the y-coordinate (second number) to 75.

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

stage.set_background("moon") sprite = codesters.Sprite("astronaut1") sprite.go_to(-125, -150) glorp = codesters.Sprite("alien1") glorp.go_to(100, -125) rock = codesters.Sprite("asteroid")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)