17 步:让我们设置如果hit_sprite是我们的ufo之一会发生什么!

  • 并拖出if 。将它放在碰撞事件中,使其前面有一个····
  • 测试变量更改为image并将测试值更改为"ufo"
  • 并使用Sayhit_sprite"Watch Out!" .
  • ,使用Go Tosprite移回其起始位置: ( 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)