STEP 7: Let's make the sprite wait for 2 seconds, and then do a flip.

  • 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 Turn Right and drop it at the bottom of your program.
  • Click Run to see the fish move down, wait 2 seconds, then turn 90 degrees!

stage.set_background("underwater") sprite = codesters.Sprite("fish") sprite.move_down(150)