第16步:当玩家按下向左键时,让所有物体向相反方向滚动!

  • 点击 ,将 Left Key 拖动到程序中。删除默认指令。
  • 在事件内部,让 stage Move Right 20 个像素,并让 goal Move Right 20 个像素。
  • 点击 ,将 Loop through List 拖动到 left_key 事件内部。
  • 对于 kitten_list 中的每只 kitten ,让 kitten Move Right 20 个像素。

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

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)