第16步:让我们设置当hit_sprite是一个UFO时会发生什么!

  • 点击 ,将 If 拖动到碰撞事件中,让它前面有一个 ···· 。
  • 将测试变量更改为 image,将测试值更改为 "ufo"。
  • 点击 ,使用 Say 让 hit_sprite 说出 "Watch Out!"。
  • 从 中,使用 Go To 将 sprite 移回到其起始位置:(0,-240)。

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)