Activity: Move Rock
I'M FINISHED WITH HOUR OF CODE!
img

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.

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")
Support