Bouncing Balls

user_icon Canthiar shared it 1 year, 1 month ago
5716 views, 61 people love it, 2 taggers, 420 downloads, in 7 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

gman2008 gman2008 2 months ago

cool!

(view all replies)
Comment Reply

redsooty9 redsooty9 2 months ago

woah!!!!!!

(view all replies)
Comment Reply

jessman jessman 3 months, 3 weeks ago

(:-O) (That is the most complicated piece of scratch code i have ever seen!) AMAZING!!!!!!!!

(view all replies)
Comment Reply

me7 me7 3 months, 3 weeks ago

i dont get it???????????/

(view all replies)
Comment Reply

rajado rajado 5 months ago

ohoh so many variables

(view all replies)
Comment Reply

Jay125 Jay125 6 months ago

this is good lol i wish i made it!

(view all replies)
Comment Reply

GodzGirl GodzGirl 7 months, 1 week ago

all your projects are scientific or mathematic... its cool!!

(view all replies)
Comment Reply

GodzGirl GodzGirl 7 months, 1 week ago

oh

(view all replies)
Comment Reply

Canthiar Canthiar 9 months, 4 weeks ago

Restitution is a fancy word for bounciness.

(view all replies)
Comment Reply

Oldschooler2 Oldschooler2 9 months, 4 weeks ago

Whats restitution in this case?

(view all replies)
Comment Reply

08jackt 08jackt 10 months, 1 week ago

Sick!

(view all replies)
Comment Reply

gne gne 11 months ago

Nice piece of programing, please check out some of my pojects!

(view all replies)
Comment Reply

Darkmasterofevil Darkmasterofevil 11 months, 1 week ago

Argh! My stupid computer wont let play anything! sgdbvxdhcxdhvchnasbdchzsbjcmvjmsdbjkcmsdbc!

(view all replies)
Comment Reply

Jay125 Jay125 11 months, 2 weeks ago

i hav to now admit u r the best programmer on scrathc after see ing this

(view all replies)
Comment Reply

752shocker 752shocker 11 months, 3 weeks ago

yet another great project! check out his random maze program its a-maze-ing

(view all replies)
Comment Reply

Canthiar Canthiar 12 months ago

Cool, glad to hear it all worked out. I may roll that change back into this program.

(view all replies)
Comment Reply

MartinWollenweber MartinWollenweber 12 months ago

Canthiar: Thank you for your help! Now it works: http://scratch.media.mit.edu/projects/MartinWollenweber/8708

(view all replies)
Comment Reply

Canthiar Canthiar 12 months ago

I saw that earlier, but figured it was solved. I will take another look.

(view all replies)
Comment Reply

MartinWollenweber MartinWollenweber 12 months ago

Hi Canthiar! Can you help to solve folowing problem with a mod-version of Bouncing Balls? (link to forums)

(view all replies)
Comment Reply

MartinWollenweber MartinWollenweber 1 year ago

Eyvind: That was a typo it's SCRATCH 1.1

(view all replies)
Comment Reply

aerith aerith 1 year ago

you're brilliant.... that's all I can say....

(view all replies)
Comment Reply

Eyvind Eyvind 1 year ago

Excuse me MartinWollenweber, where do you download scratch 1.2?

(view all replies)
Comment Reply

Canthiar Canthiar 1 year ago

If you want more balls then download the source and use the copy tool. You can have only 3 large collision objects, but you can have as many smaller ones as your computer can run.

(view all replies)
Comment Reply

simsfan70 simsfan70 1 year ago

how do you make it fire more balls

(view all replies)
Comment Reply

JoelP JoelP 1 year ago

Or a good one.

(view all replies)
Comment Reply

JoelP JoelP 1 year ago

Thats not a baad comment

(view all replies)
Comment Reply

JoelP JoelP 1 year ago

This reminds me of cows jumping over the moon, believe it or not.

(view all replies)
Comment Reply

Canthiar Canthiar 1 year, 1 month ago

It didn't start off being very large, but getting it to run fast required me to inline the sin and cos calculations which bloated it a little bit.

(view all replies)
Comment Reply

madbassist1 madbassist1 1 year, 1 month ago

this must have had a monster scrip

(view all replies)
Comment Reply

fatman fatman 1 year, 1 month ago

Hey, someone make a pong game outta this or something.

(view all replies)
Comment Reply

lozzamon626 lozzamon626 1 year, 1 month ago

wow!

(view all replies)
Comment Reply

Canthiar Canthiar 1 year, 1 month ago

Check out what MartinWollenweber has done, I think it's a pretty good version 2.

(view all replies)
Comment Reply

Roadcrosser Roadcrosser 1 year, 1 month ago

The Best! Why not have version 2?

(view all replies)
Comment Reply

firehelm99 firehelm99 1 year, 1 month ago

d00d 3p1x

(view all replies)
Comment Reply

Stefanie007 Stefanie007 1 year, 1 month ago

that is aw3som3 but th3 dir3ctions ar3 too complicat3d for m3...h3h3...m3 l3ss than 3 it...h3h3 g3t it...<3 it

(view all replies)
Comment Reply

Canthiar Canthiar 1 year, 1 month ago

Martin, that's really cool. I'm happy to see the code get reused. I do really like the pinball machine idea. I will have to add some flat surfaces to get that to work properly, but it shouldn't be too difficult.

(view all replies)
Comment Reply

MartinWollenweber MartinWollenweber 1 year, 1 month ago

Canthiar: Good idea! I hope you like my modifications (Soundcolors) at: (link to project) It lacks the purity of your original but it's somehow even more fun :-). Mohlar's above idea to make a Pinball-Mashine out of it sounds great!

(view all replies)
Comment Reply

Canthiar Canthiar 1 year, 1 month ago

Thanks for the suggestion Martin, I've uploaded a new version that can be downloaded. I hadn't expected people to download and run it and didn't notice the issue with this program until after I tried to download it. I did make a post in the forums about this issue.

(view all replies)
Comment Reply

Canthiar Canthiar 1 year, 1 month ago

I think I will make that change and upload it so that other people can download this and make change changes as they see fit.

(view all replies)
Comment Reply

destroyer95 destroyer95 1 year, 1 month ago

cool!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

(view all replies)
Comment Reply

MartinWollenweber MartinWollenweber 1 year, 1 month ago

Addendum: After saving an loading the problem is back again: You can't save the current version "Bouncing Balls" with SCRATCH 1.2! You have to carry out your above correction every time after loading it! A work-around is writing: 25/1000000 instead of 0.000025 (but that costs some calculatingtime). You have 0.000025 also in the last line of your "cos"-function in your math-library-sprite.

(view all replies)
Comment Reply

MartinWollenweber MartinWollenweber 1 year, 1 month ago

Canthiar, thank you very much! It worked immediately. Who could think of this? Did you already report the bug to the SCRATCH-Makers? I wished the Squeak-Smalltalk-Source-Code of SCRATCH would have been published already (it's said to be published end of 2007), than we had a chance to fix those kind of bugs ourself. Furthermore you could implement trigonometrically functions and other stuff (your replacement for that in "Bouncing Balls" is great!). It would be wonderfull to have a SCRATCH that you could parameterise from "beginner" to "pro": So students could start with a few concepts and got more and more up to a fully Smalltalk-like environment. What do you think?

(view all replies)
Comment Reply

Canthiar Canthiar 1 year, 1 month ago

Martin, I do know what the problem is. There is a bug in scratch when it reads files that have a small number in them. You're going to have to delete every ball except one. Then 3/4 into the ball code and you should see [set result to ((result) + ((angle power) * (2.5e-5)))]. Change the 2.5e-5 to 0.000025. Then click on the copy button, hold down the shift key and click on the ball sprite several times.

(view all replies)
Comment Reply

MartinWollenweber MartinWollenweber 1 year, 1 month ago

Hi Canthiar: Can you help me? After downloading and running it in SCRACTCH 1.2, the balls vanish directly after hitting the collision-Objects. Do you know that phenomenon?

(view all replies)
Comment Reply

400pockets 400pockets 1 year, 1 month ago

Nice

(view all replies)
Comment Reply

MartinWollenweber MartinWollenweber 1 year, 1 month ago

Great!

(view all replies)
Comment Reply

maggie maggie 1 year, 1 month ago

awsome

(view all replies)
Comment Reply

Bingo_324 Bingo_324 1 year, 1 month ago

kool

(view all replies)
Comment Reply

gow123 gow123 1 year, 1 month ago

this is cool.

(view all replies)
Comment Reply

mijet97 mijet97 1 year, 1 month ago

kool

(view all replies)
Comment Reply

geoff123 geoff123 1 year, 1 month ago

all american rejects rock!

(view all replies)
Comment Reply

Canthiar Canthiar 1 year, 1 month ago

This program stems from this discussion in the forums: (link to forums)

(view all replies)
Comment Reply

lolgrl12 lolgrl12 1 year, 1 month ago

i love my chemical romance,yeah, I'm random. So what?

(view all replies)
Comment Reply

MyRedNeptune MyRedNeptune 1 year, 1 month ago

Be my friend!

(view all replies)
Comment Reply

mijet97 mijet97 1 year, 1 month ago

KOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

(view all replies)
Comment Reply

mohlar mohlar 1 year, 1 month ago

Very smooth and great bounce physics. All sorts of possibilities here for developing games or other simulations. I'd guess this could also offer a great starting point for a pinball machine game. VERY nice.

(view all replies)
Comment Reply

cairparavel cairparavel 1 year, 1 month ago

Fantastic, I had a marble game like this that I played with for ages. Thanks looks like great fun.

(view all replies)
Comment Reply

MyRedNeptune MyRedNeptune 1 year, 1 month ago

This is just GREAT!!!

(view all replies)
Comment Reply

fandebiao fandebiao 1 year, 1 month ago

This is awesome.

(view all replies)
Comment Reply