Pixels are the unit of measurement on the stage. Let’s make the sprite move down 150 pixels.

  • In .move_down(), change the number to 150.

Don't put quotes around the number, and make sure you don’t delete the parentheses.

  • Click Run to see the sprite stand on the ground.

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(50)
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)