第7步: 让精灵静止2秒后向右移动。

  • 点击工具栏中的 。将 Wait 拖动到程序底部。
  • 指令.wait(2) 将会使整个控制台静止两秒。
  • 点击工具栏中的 。将 Move Right 拖动到程序底部。
  • 点击 运行 查看狐狸先向下移动,停止两秒后向右移动的过程。

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