From Test-Scratch-Wiki

分身删除
分身刪除
类别 控制类积木
形狀 平底形积木
加入於 2.0

The Delete This Clone 积木 is a 控制类积木 and a 平底形积木. It deletes the 分身 it runs in. This block is the only way, besides for clicking the 绿旗 or 停止标志, to delete clones.

用法示例

Clones are not often meant to last until the Green Flag or Stop Sign are pressed; this block will delete it.

  • Delete a bullet after being shot
當 [空白 v] 鍵被按下
分身 [bullet v] 建立
當分身產生
面朝 [滑鼠游標 v] 向
重複直到 <<碰到 [邊緣 v] ?> 或 <碰到 [target v] ?>> 
  移動 (3) 點
end
分身刪除
  • Removing sprites that have been found in a hide and seek game
當 @greenflag 被點擊
變數 [sprites to find v] 設為 (10)
重複 (sprites to find) 次 
  分身 [角色1 v] 建立
end
當角色被點擊
說出 [You got me!] (2) 秒
變數 [sprites to find v] 改變 (-1)
分身刪除

参见

Cookies help us deliver our services. By using our services, you agree to our use of cookies.