第 9 步:让我们更改默认代码来自定义我们的碰撞事件。

  • 单击碰撞事件内的代码编辑器
  • 删除行: ···· spritego_to( 0 , 0 ) ¬
  • 现在我们的精灵将留在原地,而另一个精灵将“隐藏”,所以看起来我们的精灵捡到了它!

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)