Discuss Scratch

AntonL1kesPotato
Scratcher
1000+ posts

Sprite duplicates itself while cloning

I was working on a sprite that acts something like a spike. It's supposed to create clones of himself in order to have multiple of them at once, of course. However, even after putting a filter for clones to prevent them to make clones of themselves, it ends up having 300 clones at once. I probably made a typo somewhere but i cannot find the reason. Link to the project: turbowarp.org/530555184 the cloning happens at “when i receive game begin” hat block, and the clones deletes themselves at the spike custom block.
Any help would be appreciated!










Making games on Scratch and learning other engines/frameworks. Also likes to make music using trackers.
































































You are using extensions, aren't you?
fell128
Scratcher
2 posts

Sprite duplicates itself while cloning

looks so cool
AntonL1kesPotato
Scratcher
1000+ posts

Sprite duplicates itself while cloning

fell128 wrote:

looks so cool
Thanks! But i would appreciate if you were to comment that on my profile instead on the forum though.










Making games on Scratch and learning other engines/frameworks. Also likes to make music using trackers.
































































You are using extensions, aren't you?
deck26
Scratcher
1000+ posts

Sprite duplicates itself while cloning

Please explain what is supposed to stop spike clones creating more clones. If it's the variable spk.% that's a global variable and it needs to be local to the sprite.
AntonL1kesPotato
Scratcher
1000+ posts

Sprite duplicates itself while cloning

deck26 wrote:

Please explain what is supposed to stop spike clones creating more clones. If it's the variable spk.% that's a global variable and it needs to be local to the sprite.
The spk.% is supposed to say if the spike generation is randomly generated using pick random blocks or structured using lists. İt's the variable who is supposed to stop the sprite duplicating itself.










Making games on Scratch and learning other engines/frameworks. Also likes to make music using trackers.
































































You are using extensions, aren't you?
deck26
Scratcher
1000+ posts

Sprite duplicates itself while cloning

AntonL1kesPotato wrote:

deck26 wrote:

Please explain what is supposed to stop spike clones creating more clones. If it's the variable spk.% that's a global variable and it needs to be local to the sprite.
The spk.% is supposed to say if the spike generation is randomly generated using pick random blocks or structured using lists. İt's the variable who is supposed to stop the sprite duplicating itself.
How? Describe the method please.

Powered by DjangoBB