Discuss Scratch

scarysailor568
Scratcher
16 posts

Deleting Sprite Only Removes Clones of a Multiple of 2

My browser / operating system: MacOS Macintosh X 10.15.7, Chrome 140.0.0.0, No Flash versions detected

If i delete a sprite using clones, only clones of a multiple of 2 (2nd, 4th, 6th, 8th, etc.) are removed.
define fix if is bug
if <this is a bug> then
create clone of [bug deleter]
end
when I start as a clone
change [bugs] by (-1)
(please PLEASE PLEASE let me know if this is wrong)

Last edited by scarysailor568 (Sept. 19, 2025 23:27:07)

medians
Scratcher
1000+ posts

Deleting Sprite Only Removes Clones of a Multiple of 2

Can you send the link to the project(s) where this is happening?
scarysailor568
Scratcher
16 posts

Deleting Sprite Only Removes Clones of a Multiple of 2

https://scratch.mit.edu/projects/1217371342/
Click ‘See Inside’ and delete the ‘WallTile’ sprite after starting the project
dave3m
Scratcher
500+ posts

Deleting Sprite Only Removes Clones of a Multiple of 2

scarysailor568 wrote:

https://scratch.mit.edu/projects/1217371342/
Click ‘See Inside’ and delete the ‘WallTile’ sprite after starting the project

Can reproduce.

If I create a new project (or use yours) and create multiple clones of a sprite, deleting that sprite from the project** only removes half of the clones from the project.

** - By delete, I mean clicking the trash can icon on the sprite button or right-clicking the sprite and selecting delete, then confirming the sprite deletion.

The main sprite is deleted, but the surviving clones retain a copy of the code and will continue executing.


Deleting the clones programmatically works as expected, including after deleting the main sprite has orphaned them in the project.

Powered by DjangoBB