Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » why wont my projects not work for example :
- CodedShadow2
- Scratcher
8 posts
why wont my projects not work for example :
When space pressed, create a clone of block, when i start as a clone: show, go to mouse pointer, doesn't work anymore due to scratch only letting you create 4 - 11 clones, please bring this back scratch
- deck26
- Scratcher
1000+ posts
why wont my projects not work for example :
The clone limit is 300 but if you press space each clone is creating another clone so they're multiplying quickly.
- CodedShadow2
- Scratcher
8 posts
why wont my projects not work for example :
good point but it creates 1 clone when i press space so i'm confused a lot
- deck26
- Scratcher
1000+ posts
why wont my projects not work for example :
But is the space pressed script in the sprite's area? If so what happens is
press once - sprite creates 1 clone
press again - both sprite and clone create a clone
press again - 4 objects create 1 clone each
press again - 8 objects create 1 clone each
and so on
press once - sprite creates 1 clone
press again - both sprite and clone create a clone
press again - 4 objects create 1 clone each
press again - 8 objects create 1 clone each
and so on
- deck26
- Scratcher
1000+ posts
why wont my projects not work for example :
Share the project then please!
Or, try just telling the clone to go to a random position - I think you'll see far more clones than you expect.
Or, try just telling the clone to go to a random position - I think you'll see far more clones than you expect.
Last edited by deck26 (Sept. 15, 2021 16:18:16)
- CodedShadow2
- Scratcher
8 posts
why wont my projects not work for example :
when I start as a clone
go to [random position v]
Last edited by CodedShadow2 (Sept. 15, 2021 16:31:11)
- deck26
- Scratcher
1000+ posts
why wont my projects not work for example :
Get another sprite to create the clones - sprite A can respond to the space key and create a clone of sprite B.
- CodedShadow2
- Scratcher
8 posts
why wont my projects not work for example :
when key pressed
broadcast [ mouse downv]
when I receive [mouse down v]
create clone of [myself v]
when I start as a clone
go to [random position v]
- deck26
- Scratcher
1000+ posts
why wont my projects not work for example :
But each clone will receive the broadcast and create another clone. That's not going to help stop the clones multiplying.when [space] key pressed
broadcast [ mouse downv]
when I receive [mouse down v]
create clone of [myself v]
when I start as a clone
go to [random position v]
Last edited by deck26 (Sept. 15, 2021 17:38:50)
- Discussion Forums
- » Help with Scripts
- » why wont my projects not work for example :