Discuss Scratch

s41036
Scratcher
2 posts

Clone Detect

I would appreciate a block similar to the "
([ v] of [Sprite1 v])
however it instead works like :
([ v] of [Sprite1 nearest clone v])
which includes the normal options such as “x position” in the first slot and “Sprite 1” in the second slot but with a third slot with various options such as “nearest clone” or “furthest clone” or “x clone created”.
I'm not sure if it is possible but I would appreciate it being added.

Edit: This would be especially useful for new users as current methods are extremely long and complicated.

Last edited by s41036 (June 11, 2022 09:12:03)

RL1123
Scratcher
1000+ posts

Clone Detect

For the nearest and furthest clone, that's definitely possible, as demonstrated by this project. You can find the furthest clone by switching the less than to a more than in the Find Closest custom block in Sprite2.

X clone created is kind of vague, would it be only from the current clones on the screen or the total number of clones? If it's the total number of clones, then there should be some Not Available value when the clone is deleted.

I can see why this would be useful though, the workarounds are extremely complex with stuff like lists and trigonometry. This one block would condense 100 blocks of code into 1 block.
s41036
Scratcher
2 posts

Clone Detect

RL1123 wrote:

For the nearest and furthest clone, that's definitely possible, as demonstrated by this project. You can find the furthest clone by switching the less than to a more than in the Find Closest custom block in Sprite2.

X clone created is kind of vague, would it be only from the current clones on the screen or the total number of clones? If it's the total number of clones, then there should be some Not Available value when the clone is deleted.

I can see why this would be useful though, the workarounds are extremely complex with stuff like lists and trigonometry. This one block would condense 100 blocks of code into 1 block.

the “X clone” I think should return a null value if the clone is deleted but I also think that if a clone is created after some clones are deleted, it should take the smallest number with value “Null”
GoldenMooshroom999
Scratcher
1 post

Clone Detect

I agree. This would most certainly be very useful.

Powered by DjangoBB