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 cheerleader move down, wait 2 seconds, then turn 90 degrees!

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

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