第 6 步:让我们的狐狸进一步向下移动,直到它在地面上。

舞台设计成网格状,每块为1个单元。您将在下一课中了解有关它的更多信息。

  • 让我们让精灵向下移动4单位。
  • .move_down( 2 )中,命令将数字从2更改为4 。不要在数字周围加上引号。
  • 点击跑去看狐狸向下移动更远。然后点击提交接下来继续。

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