Discuss Scratch

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
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

Here: http://scratch.mit.edu/projects/12797202/

See inside

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
drmcw
Scratcher
1000+ posts

Problem with clones

Try this.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
JAVAProgramming
Scratcher
100+ posts

Problem with clones

jonsson95 wrote:

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
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.

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

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

drmcw wrote:

Try this.
Didn't realize you also made a remix until now. But I can't seem to make it work? The clone does not move anywhere
drmcw
Scratcher
1000+ posts

Problem with clones

jonsson95 wrote:

drmcw wrote:

Try this.
Didn't realize you also made a remix until now. But I can't seem to make it work? The clone does not move anywhere

If you mean the can that stays on the left of the screen, I've hidden that now. Try it again.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
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

jonsson95 wrote:

Well then nothing changes at all mate. There's only 1 sprite at the time. But still thanks for helping to both of you
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.

Last edited by drmcw (Oct. 1, 2013 11:04:13)


10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?

Powered by DjangoBB