STEP 7: Let's make the sprite wait for 2 seconds, and then move right.

  • Click on in the toolkit. Drag out Wait and drop it into your program.
  • The .wait(2) command will make the entire stage pause for two seconds.
  • Go to . Drag out Move Right and drop it at the bottom of your program.
  • Click Run to see the fox move down, wait 2 seconds, then move right.

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

stage.set_background("winter") sprite = codesters.Sprite("fox") sprite.move_down(4)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)