STEP 9: Now that we've set the speed we want, let's fly to the next Codester to pick it up!

  • Click Run to see the pick up location.
  • Go to . Drag out a Glide To command and drop it at the bottom of your program.
  • Change the x and y coordinates to send the UFO to the Codester.

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

stage.set_background("space") sprite = codesters.Sprite("ufo") sprite.set_size(0.4) sprite.go_to(-200, -200) sprite.pen_down() sprite.glide_to(-100, -100) def collision(sprite, hit_sprite): hit_sprite.hide() # add any other actions... sprite.event_collision(collision) sprite.set_speed(2)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)