场景 3

  • 中选择你的背景。
  • 为你的精灵选择一个 。 这可能会将其放置在新的地方,或让你的精灵移动。
  • 使用 Set Text 将屏幕上的文本更改为描述新场景的新句子。
  • 中添加一个 Wait 指令。

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(1) sprite.move_right(400) transition1 = sprite.ask("Choose a transition from the sequence category.") text.set_text(transition1) sprite.move_left(200) stage.set_background("underwater") text.set_text("I like turtles.") stage.wait(2) transition2 = sprite.ask("Enter another word") text.set_text(transition2)
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)