Discuss Scratch

Joe_Swab
Scratcher
2 posts

Clone Multiplying Glitch?

I am not sure if this is a glitch or its my problem, but every time I use a broadcast to make a clone of another sprite, it multiplies.

broadcast [ v]

when I receive [ v]
create clone of [ v]

Then it breaks lol

PLEASE HOW DO I FIX THIS!!
psaad
Scratcher
100+ posts

Clone Multiplying Glitch?

wait until <not <statement... :: #ABABAB>> //?
medians
Scratcher
1000+ posts

Clone Multiplying Glitch?

The reason that this happens is because clones receive broadcasts (which I think should be clarified because since 2013/2014, people have been confused on this and believed that they don't).

Last edited by medians (Feb. 3, 2023 20:54:28)

Joe_Swab
Scratcher
2 posts

Clone Multiplying Glitch?

medians wrote:

The reason that this happens is because clones receive broadcasts (which I think should be clarified because since 2013/2014, people have been confused on this and believed that they don't).
Oh! thank you so much!
medians
Scratcher
1000+ posts

Clone Multiplying Glitch?

Joe_Swab wrote:

medians wrote:

The reason that this happens is because clones receive broadcasts (which I think should be clarified because since 2013/2014, people have been confused on this and believed that they don't).
Oh! thank you so much!
There may be a way to workaround this though
Clones also can access sprite only variables, meaning you can set up a variable checking if the sprite is a clone. Like this:


Make sure that the variable is sprite only though.

Last edited by medians (Feb. 3, 2023 21:10:52)

DASniperIC
Scratcher
64 posts

Clone Multiplying Glitch?

Joe_Swab wrote:

I am not sure if this is a glitch or its my problem, but every time I use a broadcast to make a clone of another sprite, it multiplies.

broadcast [ v]

when I receive [ v]
create clone of [ v]

Then it breaks lol

PLEASE HOW DO I FIX THIS!!
I found that out the hard way. Instead of doing “when I receive clone myself”, make the sprite who broadcasted the broadcast do the cloning instead, and make the sprite being broadcasted only set the location of the clone.

Powered by DjangoBB