Discuss Scratch

17zslate
Scratcher
2 posts

Controlling number of clones in program?

I´m working on a project involving clones, but the problem is that there are too many clones popping up in the program. It´s making it look ugly, as well as making the program slow. How do I control the number of sprites that show up?

Last edited by 17zslate (Nov. 8, 2016 15:28:30)

WolfCat67
Scratcher
1000+ posts

Controlling number of clones in program?

Could you please supply us with a link to the project to help you? The scripts for controlling the number of sprites will most likely vary depending on how you are creating them. However, I would consider using a Variable for detecting the number of clones.
when green flag clicked
set [Clone Number v] to [0]
...
change [Clone Number v] by (1)
create clone of [myself v]
...
FYI: Next time, ask a question about a project in the “Help with Scripts” section of the forum.

17zslate
Scratcher
2 posts

Controlling number of clones in program?

Thank you for that idea! It´s working a lot better!
I dont want to share it yet, because its not quite finished. But i will when im done!

Powered by DjangoBB