Discuss Scratch

DaniTheDude
Scratcher
5 posts

How to fix cloning issue

is there a way to make a clone without duplicating other clones? would stamping work? is there a way to move stamps?
minniesworld
Scratcher
500+ posts

How to fix cloning issue

To move stamps, make a main Sprite place each stamp where it needs to be each frame. Use lists to keep track of where each stamp should be.
Hope this helps!
IBadlyNeedAName
Scratcher
10 posts

How to fix cloning issue

Can I ask what you mean by “duplicating other clones”? What's your goal here?
DaniTheDude
Scratcher
5 posts

How to fix cloning issue

im not trying to duplicate other clones im trying to stop it from
10goto10
Scratcher
1000+ posts

How to fix cloning issue

Your project might have a pitfall that is common to many projects that use clones and broadcasts. My example (a silly project where all clones say all lines of a knock-knock joke) is here: https://scratch.mit.edu/projects/835974034/ The fix involves local variables and use of if statements. If that is your project’s problem and if you share a link to your code then someone will probably give you better help.
deck26
Scratcher
1000+ posts

How to fix cloning issue

The issue is presumably that you have clones creating clones when you only want the sprirte to do so. There are two easy fixes

1 - use an uncloned sprite to create the clones (spriteA creates clones of spriteB)

2 - use a local (this sprite only) variable. Set it to 0 for the sprite and to 1 at the start of a clone scriptl. Then only create clones if the variable=0.
unknown2467
Scratcher
100+ posts

How to fix cloning issue

//so are you using
when I receive [ v]
create clone of [myself v]
//or something like that?

Last edited by unknown2467 (Jan. 27, 2025 14:31:51)

DaniTheDude
Scratcher
5 posts

How to fix cloning issue

yeah
ajtheweiss1
Scratcher
1 post

How to fix cloning issue

my game keeps make more clones even though i didnt do anything to make it do that i need help

Powered by DjangoBB