Let's have our sprite wait 2 seconds and then do the next move.

  • From , drag Wait into your program.
  • From , drag Move Up into your program. Drop it below the .wait() command.

Now the sprite will pause before moving up.

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

stage.set_background("subway") sprite = codesters.Sprite("person10") sprite.move_down(75) sprite.flip_up_down() sprite.move_right(200) sprite.move_left(150) sprite.flip_up_down()
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)