Discuss Scratch

Imadumdum17
Scratcher
21 posts

Clones not working!

I don't know the cause of this bug, but sometimes clones will just stop appearing. In my project https://scratch.mit.edu/projects/611660142 , go to level 4 and do this: Press E, wait for you to turn black, collect powerups, and shoot as much as you can (F). The clones will stop appearing, but some things still work. Please help!

Last edited by Imadumdum17 (Jan. 13, 2022 00:15:22)

kidcoder427
Scratcher
100+ posts

Clones not working!

Your link is flawed. Should the link go to https://scratch.mit.edu/projects/611660142 ?
CamG777
Scratcher
100+ posts

Clones not working!

kidcoder427 wrote:

Your link is flawed. Should the link go to https://scratch.mit.edu/projects/611660142 ?

Yes
Imadumdum17
Scratcher
21 posts

Clones not working!

kidcoder427 wrote:

Your link is flawed. Should the link go to https://scratch.mit.edu/projects/611660142 ?
yes, thank you.
Thingied
Scratcher
1000+ posts

Clones not working!

So in the “bullet” and “playerbullet” sprites, there's a broadcast inside each of them that clones themselves. This is a problem because the clones will clone themselves making the clone count increase exponentially. Because there's a 300 clone limit, every new clone will be instantly deleted, therefore breaking your game.

A fix is to only let the main sprite clone instead of the clones too.
Notes:
Set the “clone?” variable to this sprite only
Do the same for both the “bullet” and “playerbullet” sprites
Red circles outline the changes
Imadumdum17
Scratcher
21 posts

Clones not working!

Thingied wrote:

So in the “bullet” and “playerbullet” sprites, there's a broadcast inside each of them that clones themselves. This is a problem because the clones will clone themselves making the clone count increase exponentially. Because there's a 300 clone limit, every new clone will be instantly deleted, therefore breaking your game.

A fix is to only let the main sprite clone instead of the clones too.
Notes:
Set the “clone?” variable to this sprite only
Do the same for both the “bullet” and “playerbullet” sprites
Red circles outline the changes
Thank you, I have been having this problem for a long time!
Should I do it with all the clones? (Such as purple blob)?

Powered by DjangoBB