只要计时器上还有时间,我们就可以在控制台上添加垃圾。

  • 在事件内部使用 if 以测试 timer 的值是否大于 > 0
  • if 语句中,添加 Random Choice。将其命名为litter_image。将参数设置为 all_litter
  • Sprite at Position 拖动到你的时间内部。将其命名为 new_litter
  • 将图像名称更改为变量 litter_image。更改坐标 xy

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)