这些指令中的数字可以控制精灵如何服从指令,就像要等待多久,或是要移动多远。

  • .wait() 中的数字更改为 1
  • .move_right() 指令中的数字更改为 400

首先,我们更改控制台停止和等待的秒数。

其次,我们将精灵向右移动 400 像素。

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

stage.set_background("park") sprite = codesters.Sprite("person3") sprite.glide_to(-100, 50) # text = codesters.Text("text", x, y, "color") text = codesters.Text("I went to the park!", 0, -200, "blue") stage.wait(2) sprite.move_right(50)
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)