Please make it to where the delete clone is specific on which clone

Please make it to where the "Delete this Clone" block doesn't just delete all the clones but instead a specific one. Maybe like a list of choices like "Delete this Clone: 1, All, Random, or Clone #). Please and thank you.

When the block is running in a clone, it deletes that clone. If it runs in the sprite that created the clones, it does literally nothing. I think your issue is just that your script is running in every clone, and that's why all your clones are being deleted.

see the bottom block in this project, and to use the block in your projects, right click the block and select "script pic", then drag the file into another snap project that you want to use the block in.

Here's a much more simpler and not overcomplicated way of doing that.

create sprites, deleted clones, or permanent clones script pic (1)
create sprites, deleted clones, or permanent clones script pic (2)

I also chose to not have clones run this block in their parent, because clones can have clones.

Wasn't it you who just taught someone in another thread not to say
untitled script pic (7)
? ;~)

The thing is, the list reported by (my [clones V]) is not a linked list, as in, the list doesn't update when you delete or create a clone, so this case is fine. The deleted clones stay in the list, they will just be "dead sprites". Also, I'm pretty sure if I taught someone not to do something like that, I would have explained linked lists, because there are cases where you want to keep the original list, but also clear it.

Oh okay.

I don't see what linked lists has to do with it. If you delete an item from a dynamic array-type list, the other items' indices are reduced, too.

Sorry, I just meant the same list references in different variables (I have no idea what the short term for that is).

To be honest, I actually didn't even think about what you brought up when I created the block, I just added that in for hyperblock support.

Shared storage.

Edit: Linked lists are relevant in that you can share part of a linked list, whereas with dynamic arrays it's all or nothing.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.