Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Create new clone duplicates all clones instead of adding
- AbrahamSam
-
15 posts
Create new clone duplicates all clones instead of adding
Game
I am currently working on a remake of Egg, Inc. in scratch, and I have set up a code where when the red button is pressed, it broadcasts a message that the chicken sprite receives, and is meant to add another clone. However, it duplicates all of the clones in the sprite. I have noticed that directly clicking the code inside of the chicken makes it work as intended.
I am currently working on a remake of Egg, Inc. in scratch, and I have set up a code where when the red button is pressed, it broadcasts a message that the chicken sprite receives, and is meant to add another clone. However, it duplicates all of the clones in the sprite. I have noticed that directly clicking the code inside of the chicken makes it work as intended.
- 10goto10
-
500+ posts
Create new clone duplicates all clones instead of adding
The broadcast “spawn” is received by the chicken sprite and all of it's clones.
You might try having the button sprite directly create a clone of chicken rather than send the spawn broadcast.
You might try having the button sprite directly create a clone of chicken rather than send the spawn broadcast.
- Discussion Forums
- » Help with Scripts
-
» Create new clone duplicates all clones instead of adding