Click to launch the ball towards the mouse. It will bounce like crazy! Hold Space to drag and drop walls and the ball. See inside to get an idea of how it works! If you're having trouble sorting it out, here's a simpler example: http://beta.scratch.mit.edu/projects/10118636/ Please also read the notes below...
This is from the Beta period of Scratch 2.0. If you look, the parabola is off due to the way gravity is scripted. I'll make an improved version once I figure out a way to fix that. This is a project demonstrating the power of atomic blocks without screen refresh and how it can be applied to physics! Displays my better "move" block technique, which makes it so no matter how fast the ball is moving, it still senses walls. Watch it roll infinitely! Look at the bottom of the notes for some more advanced help. If it is inside a wall, it will eject itself out, and it will no longer enter walls on its own, even in times of lag. Please tell me if it escapes a box or skips a wall! I think I might have fixed that but there's no way to be certain... Also, any help improving the gravity would be appreciated. Advanced help: To activate Slow Mode, just hold m key. Hold z key to change friction and gravity variables. Notice that if you make a "floor" out of walls, it bounces back while rolling at particular points; this is because it's touching that little bit of vertical sensing on the end of the wall that is overlapping another wall. You can patch this by precisely overlapping a thicker short wall at that point, not a pixel too high or too low. It will roll on past. If you're having trouble picking up a wall you have already placed, try holding down the mouse and dragging it slowly over the wall.