Discuss Scratch

Lord_Vader123456789
Scratcher
14 posts

Delete all clones

This is stupid why we don't have it already. In fact, its so stupid that I originally thought it existed! Now I have to do crazy workarounds to get each clone to individually self-delete. Basically it is a block like this

deleteallclonesof

The inputs would be all clones and clones of this sprite.
PsychicAura
Scratcher
100+ posts

Delete all clones

whenIreceivedelete all clonesdeletethisclone

now just put a broadcast whenever you need to clear all clones. what's so crazy about the workaround? It literally only uses 2 more blocks.

Last edited by PsychicAura (Nov. 25, 2022 21:59:12)

Lord_Vader123456789
Scratcher
14 posts

Delete all clones

It needs to be attached to a specific clone, right?
selfexplanatory
Scratcher
100+ posts

Delete all clones

whenIreceivedelete clones in all spritesdeletethiscloneput this broadcast in every sprite, with this same codewhenIreceivedelete only this spritedeletethiscloneonly put it in the sprite
k0d3rrr
Scratcher
1000+ posts

Delete all clones

You can do this with already existing blocks, and also, this has been suggested before: https://scratch.mit.edu/discuss/topic/72480/
AbrahamAgana8
Scratcher
2 posts

Delete all clones

hi i used this one for deleting all clones of one sprite with heavy inspo from selfexplanatory
whenthisspriteclickedbroadcastdelete all clones andwait
whenIreceivedelete all clonesifcostumenumber=2thendeletethisclone
AbrahamAgana8
Scratcher
2 posts

Delete all clones

AbrahamAgana8 wrote:

hi i used this one for deleting all clones of one sprite with heavy inspo from selfexplanatory
whenthisspriteclickedbroadcastdelete all clones andwait
whenIreceivedelete all clonesifcostumenumber=2thendeletethisclone
by the way you will need to do this for every sprite

Last edited by AbrahamAgana8 (March 4, 2025 05:25:55)

scratchnikcool
Scratcher
1 post

Delete all clones

Lord_Vader123456789 wrote:

It needs to be attached to a specific clone, right?
Yes, it does. Here's a workaround that needs to be attached to the clone code
ifdeleteallclones?=1thendeletethisclone

Last edited by scratchnikcool (April 29, 2025 17:42:19)

hard93
Scratcher
10 posts

Delete all clones

support 2 save time

Powered by DjangoBB