Activity: Wait
img

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.

stage.set_background("winter") sprite = codesters.Sprite("fox") sprite.move_down(150)
Support