第17步:让我们添加一个碰撞事件来测试哪个 hit_sprite 与 speedy 发生碰撞。
- 点击 ,将 Collision with Other Sprite 拖动到程序底部。
- 将事件处理器前面的名称更改为 speedy。
- 找到代码行 my_var·=·hit_sprite.get_image_name() 并将变量的名称更改为 image。
- 将 if 语句中的变量更改为 image。
To navigate the page using the TAB key, first press ESC to exit the code editor.