Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Clones cloning themselves?
- swiftyduck
- Scratcher
20 posts
Clones cloning themselves?
When I make a clone the clone creates another clone. Here is my code, please help.
when [ space] key pressed
create clone of [ myself]
when I start as a clone
show
point in direction ( (playerdirection))
go to [ hitbox]
repeat (40)
move (10) steps
end
delete this clone
Last edited by swiftyduck (July 18, 2021 00:30:29)
when green flag clicked
say [hi]
- mrcreatorluigi
- Scratcher
1000+ posts
Clones cloning themselves?
This script is causing all the clones to multiply. Instead create a blank sprite and add this code in, removing the when space key pressed block from the sprite you're gonna clone.
when [space v] key pressed
create clone of [the sprite you want to clone v]
if i was in aladdin, my first wish would be to have infinite wishes, and use those infinite wishes for infinite wishes on each wish, rince and repeat
- swiftyduck
- Scratcher
20 posts
Clones cloning themselves?
Thank you very much This script is causing all the clones to multiply. Instead create a blank sprite and add this code in, removing the when space key pressed block from the sprite you're gonna clone.when [space v] key pressed
create clone of [the sprite you want to clone v]
when green flag clicked
say [hi]
- Discussion Forums
- » Help with Scripts
- » Clones cloning themselves?