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.