第16步 碰撞事件中的事件处理器识别所有碰撞中的 spritehit_sprite。我们的 sprite 是一个外星人。我们将在碰撞事件内部使用 hit_sprite 来指代所有与外星人发生碰撞的精灵。

  • 点击 ,将 Remove Sprite 拖动到碰撞事件内部。
  • .remove_sprite() 指令中的精灵更改为 hit_sprite
  • 中,将 Say 拖动到碰撞事件内部。将字符串更改为 "I got one!"

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)