第17 步:让我们设置如果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)