Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Problem with clones
- jonsson95
- New to Scratch
9 posts
Problem with clones
Hi
I am new to this whole scratch thing. So far I created this: http://scratch.mit.edu/projects/12619881/#editor
My issue: I want to create more and more coca cola cans as the score becomes higher. How do I do this?
Best regards
I am new to this whole scratch thing. So far I created this: http://scratch.mit.edu/projects/12619881/#editor
My issue: I want to create more and more coca cola cans as the score becomes higher. How do I do this?
Best regards
- jonsson95
- New to Scratch
9 posts
Problem with clones
By the way I want it to be random. So sometimes 4 new coca cola cans will be created (with a bit space between them) and sometime only 2 will be created
- JAVAProgramming
- Scratcher
100+ posts
Problem with clones
My Newest Project, Come Check It Out
Dots, On Scratch
Want to change the way we count? The Dozenal System.
“The story so far:
In the beginning the Universe was created.
This has made a lot of people very angry and been widely regarded as a bad move.”
― Douglas Adams, The Restaurant at the End of the Universe
- jonsson95
- New to Scratch
9 posts
Problem with clones
Well first of all thanks!
But well I guess im a bit of a noob at this. I tried some things, but whatever I did it would just create tons of clones. Oh and by the way, im trying to make it harder and harder the better the score gets (more and more clones) but I really cant seem to figure out how.
Best regards
But well I guess im a bit of a noob at this. I tried some things, but whatever I did it would just create tons of clones. Oh and by the way, im trying to make it harder and harder the better the score gets (more and more clones) but I really cant seem to figure out how.
Best regards
- JAVAProgramming
- Scratcher
100+ posts
Problem with clones
I'm sorry… I didn't get to test it before I had to go. So it might not work. I'll see about that now. Well first of all thanks!
But well I guess im a bit of a noob at this. I tried some things, but whatever I did it would just create tons of clones. Oh and by the way, im trying to make it harder and harder the better the score gets (more and more clones) but I really cant seem to figure out how.
Best regards
Edit:
I figured out what was wrong and I fixed it. Just change the level # and the wait time.
Last edited by JAVAProgramming (Sept. 30, 2013 23:19:44)
My Newest Project, Come Check It Out
Dots, On Scratch
Want to change the way we count? The Dozenal System.
“The story so far:
In the beginning the Universe was created.
This has made a lot of people very angry and been widely regarded as a bad move.”
― Douglas Adams, The Restaurant at the End of the Universe
- jonsson95
- New to Scratch
9 posts
Problem with clones
Thanks man!
I tried to change a few of the things you said I should change and I encountered 2 bugs.
Bug 1) When life left = 0 the game is supposed to stop but it doesn't. - nevermind i just fixed it
Bug 2) Sometimes it is impossible not to die because the clones hit the ground at the same time
Hope you can help http://scratch.mit.edu/projects/12822303/#editor
I tried to change a few of the things you said I should change and I encountered 2 bugs.
Bug 1) When life left = 0 the game is supposed to stop but it doesn't. - nevermind i just fixed it
Bug 2) Sometimes it is impossible not to die because the clones hit the ground at the same time
Hope you can help http://scratch.mit.edu/projects/12822303/#editor
Last edited by jonsson95 (Oct. 1, 2013 07:05:06)
- jonsson95
- New to Scratch
9 posts
Problem with clones
I am also thinking is it possible to create a script so it will change every time the score improves by 3? I mean in a way so I dont have to do it manually, it does not seem that intelligent, which is the opposite of what I have experienced with scratch so far
Last edited by jonsson95 (Oct. 1, 2013 07:16:01)
- jonsson95
- New to Scratch
9 posts
Problem with clones
Well then nothing changes at all mate. There's only 1 sprite at the time. But still thanks for helping to both of you
- drmcw
- Scratcher
1000+ posts
Problem with clones
You get one sprite that appears sooner as the score increases. There is also a random element where you get more than one too, but its rare for low score but less rare as the score gets higher. You just need to tweak the logic in the wait and the random numbers to get what you want. I managed a score of 38 and was juggling 3 cans at once before losing 3 lives. Well then nothing changes at all mate. There's only 1 sprite at the time. But still thanks for helping to both of you
Last edited by drmcw (Oct. 1, 2013 11:04:13)
- Discussion Forums
- » Help with Scripts
- » Problem with clones