第19步:从 if 语句内部删除默认的 .say() 指令。

如果英雄与 "kitten" 相撞,则设置以下命令运行:

  • 使用 Remove Spritehit_sprite 从控制台上移除。
  • 使用 Add Value score 添加 1
  • 使用 Update Display 以将新的 score 更新到 score_board

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)