Congratulations! The Scratch team is considering using this project as a sample project. It may be included with the download of the next version of Scratch, version 1.2. We may make some edits to the project, for example to change the project name, project notes, or code, or add instructions on the screen. You can see our current working version in this gallery (link to gallery)">(link to gallery) Of course you will still get full credit as the creator of the project. By Tuesday, Nov 27th, please let us know if you prefer that we not include your project, for any reason, or you have any specific requests for changes to the project. You can let us know by clicking "contact us" at the bottom of the page and then filling out the form. Also, if you would like to make some changes to the project yourself, please make your changes, share the project on the site, and let us know using the contact form. Thank you so much for your wonderful contributions to the Scratch community! Sincerely, The Scratch Team
I solved the problem with help of John and Canthiar: Now Offline+Online work the same. There are some sphisticated bugs in the Java-Player (e.g. with the "touched"-block) I had to work around. See our discussion at: (link to forum)">(link to forum)
There seems to be a new Version of the Online-player (Java-Player) that causes the balls getting "caught" by the collision objects. That does not happen in the Offline-player (Squeak-Player). It also worked in an former version of the Online-Player. I hope the Scratch-Team will fix it soon.
Bouncing Balls with Soundcolors
is a much enlarged version of:
(link to project)
by Canthiar
You now have colors an sounds and many parameters to play with:
Up / Down = -/+ Gravity
Left / Right = -/+ Emitter Speed
B / A = -/+ more Balls
1 = switch Edges
2 = switch Turn Effect
3 = switch Random
4 = switch Drawing
5 = switch Sound
Space = start Balls again
DragDrop Collision Objects
DragDrop Balls
DragDrop Emitter
Turn Emitter by pulling it's tip
H = Help (english)
G = Help (german)
Chantiers original description:
You can move the object emitter around with the mouse and change the direction by clicking on the pointed end.
This is what I consider a production version since I've inlined a few things. I have a more academic version that is a little easier to read. The whole thing is also dumbed down a little to make the math a little easier.
How it works:
When a ball encounters a collision object it uses the [ point towards[ Collision ] ] command block and then uses sin and cos to calculate a colliion normal. That normal is used to calculate a resulting velocity perpendicular to the surface and velocity tangent to the surface. Friction and restitution are applied to make the ball bounce.
Comments
You need to be logged in to post comments
Add a Comment
Wow! A real gem. I'm letting it play in the kitchen while I make dinner. I love the randomness of it. Thank you.
WOW!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ok about my 2nd comment i made, i meant with drawing mode. it's preeeeeety.
...still ♥luving♥ it
Oldschooler2: Das freut mich :) ! Fröhliches Scratchen!
Macht viel Spass!
pretty colors. TO ANY1 WHO IS PLAYING 4 THE FIRST TIME: try turning gravity off and putting 10 balls out. it's cool.
this is the best scratch project i hav ever seen. it's so awesome
Congratulations! The Scratch team is considering using this project as a sample project. It may be included with the download of the next version of Scratch, version 1.2. We may make some edits to the project, for example to change the project name, project notes, or code, or add instructions on the screen. You can see our current working version in this gallery (link to gallery)">(link to gallery) Of course you will still get full credit as the creator of the project. By Tuesday, Nov 27th, please let us know if you prefer that we not include your project, for any reason, or you have any specific requests for changes to the project. You can let us know by clicking "contact us" at the bottom of the page and then filling out the form. Also, if you would like to make some changes to the project yourself, please make your changes, share the project on the site, and let us know using the contact form. Thank you so much for your wonderful contributions to the Scratch community! Sincerely, The Scratch Team
Thank you all for your motivating comments! Have also a look at the projects of my kids Valeria (10) + Victor (7) (on my list of friends)
marvelous!
Nice musical project!
cool
coolest project i've ever seen!!
Cool!
nice
Your work with Canthiar is a great model of collaboration!
WOW!
How do you link on a comment??
COOL!!!
I solved the problem with help of John and Canthiar: Now Offline+Online work the same. There are some sphisticated bugs in the Java-Player (e.g. with the "touched"-block) I had to work around. See our discussion at: (link to forum)">(link to forum)
Wonderful project! I just saw your forum post about the new issue that has arisen. We will look into it!
There seems to be a new Version of the Online-player (Java-Player) that causes the balls getting "caught" by the collision objects. That does not happen in the Offline-player (Squeak-Player). It also worked in an former version of the Online-Player. I hope the Scratch-Team will fix it soon.
brilliant
spooky
wow
mazing
cool
Those are some wild changes.
Spooky !