This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-10-05 15:06:44

youvecatstobekitten
New Scratcher
Registered: 2012-10-05
Posts: 11

infinite dodge balls

Im making a dodgeball game and i dont want to make thousands of balls.  How can i make infinite balls.
Thanks

Offline

 

#2 2012-10-05 15:11:28

THEMONKEYBLASTER9
New Scratcher
Registered: 2012-10-05
Posts: 3

Re: infinite dodge balls

You Can Duplicate It A Million Times

Offline

 

#3 2012-10-05 15:15:19

youvecatstobekitten
New Scratcher
Registered: 2012-10-05
Posts: 11

Re: infinite dodge balls

thank you monkeyblaster9 but i would like a nother answer

Offline

 

#4 2012-10-05 15:32:09

CheckItNow12
Scratcher
Registered: 2011-05-07
Posts: 1000+

Re: infinite dodge balls

Copy the Dodgeball sprites then paste them.  smile


http://i992.photobucket.com/albums/af47/NicolBolas_Alara/Doctor%20Who/raincry.gif

Offline

 

#5 2012-10-05 15:34:30

youvecatstobekitten
New Scratcher
Registered: 2012-10-05
Posts: 11

Re: infinite dodge balls

is there a way to copy more than one at once

Offline

 

#6 2012-10-05 15:45:40

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: infinite dodge balls

youvecatstobekitten wrote:

is there a way to copy more than one at once

You can either use BYOB (which has a clone function) or write a bot.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#7 2012-10-05 15:45:44

CheckItNow12
Scratcher
Registered: 2011-05-07
Posts: 1000+

Re: infinite dodge balls

youvecatstobekitten wrote:

is there a way to copy more than one at once

No.


http://i992.photobucket.com/albums/af47/NicolBolas_Alara/Doctor%20Who/raincry.gif

Offline

 

#8 2012-10-11 14:49:16

THEMONKEYBLASTER9
New Scratcher
Registered: 2012-10-05
Posts: 3

Re: infinite dodge balls

you just duplicxate it



gdhsdehdsjk

Offline

 

#9 2012-10-11 15:00:02

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: infinite dodge balls

THEMONKEYBLASTER9 wrote:

you just duplicxate it



gdhsdehdsjk

what's the point of the "gdhsdehdsjk" ?


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#10 2012-10-13 06:09:35

notaloser
Scratcher
Registered: 2011-12-06
Posts: 100+

Re: infinite dodge balls

Wait until Scratch 2.0 comes out (with built in cloning blocks), or just duplicate them...


http://gifs.gifbin.com/1238409599_nom_nom.gifhttp://cdn3.lolzsquad.com/wp-content/uploads/2012/10/Come-here-I-want-to-tell-you-something.-.gif

Offline

 

#11 2012-10-13 06:48:10

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: infinite dodge balls

do you want more than 1 ball on the screen at a time? or just a regenning one?


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#12 2012-10-13 11:26:14

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: infinite dodge balls

If you have a maximum of 5 balls on the screen at any one time then you only need 5 sprites.

Offline

 

#13 2012-10-13 11:47:59

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: infinite dodge balls

You can try saving the positions in a list (lists: x, y, direction) and then have a single sprite go to that position pointing in the first direction on the direction list, move 5 steps then stamp, save the new position and then go to the next item on the list and repeat. Once you get through all the objects in the list, clear the screen and repeat the process. It starts becoming slow once you reach 5 or more stamps, but then you can divide the work with multiple sprites.

Of course there are probably ways to optimize this (like instead of using the move block, you can use an algorithm to update the positions and then have it stamp at the updated positions. (I'm not sure if this would be faster, but I think updating the screen takes longer than doing math equations and saving them to a list or variable.)

Other than that, you'll probably have to wait for Scratch 2.0 or use a Mod.

Offline

 

Board footer