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). 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 forums)
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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
(view all replies)Comment Reply
ok about my 2nd comment i made, i meant with drawing mode. it's preeeeeety.
(view all replies)Comment Reply
...still ♥luving♥ it
(view all replies)Comment Reply
Oldschooler2: Das freut mich :) ! Fröhliches Scratchen!
(view all replies)Comment Reply
Macht viel Spass!
(view all replies)Comment Reply
pretty colors. TO ANY1 WHO IS PLAYING 4 THE FIRST TIME: try turning gravity off and putting 10 balls out. it's cool.
(view all replies)Comment Reply
this is the best scratch project i hav ever seen. it's so awesome
(view all replies)Comment Reply
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). 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
(view all replies)Comment Reply
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)
(view all replies)Comment Reply
marvelous!
(view all replies)Comment Reply
Nice musical project!
(view all replies)Comment Reply
cool
(view all replies)Comment Reply
coolest project i've ever seen!!
(view all replies)Comment Reply
Cool!
(view all replies)Comment Reply
nice
(view all replies)Comment Reply
Your work with Canthiar is a great model of collaboration!
(view all replies)Comment Reply
WOW!
(view all replies)Comment Reply
How do you link on a comment??
(view all replies)Comment Reply
COOL!!!
(view all replies)Comment Reply
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 forums)
(view all replies)Comment Reply
Wonderful project! I just saw your forum post about the new issue that has arisen. We will look into it!
(view all replies)Comment Reply
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.
(view all replies)Comment Reply
brilliant
(view all replies)Comment Reply
spooky
(view all replies)Comment Reply
wow
(view all replies)Comment Reply
mazing
(view all replies)Comment Reply
cool
(view all replies)Comment Reply
Those are some wild changes.
(view all replies)Comment Reply
Spooky !
(view all replies)Comment Reply