click the green flag to set things up. click the orange to make it fall click the tennis ball to make it bounce Try changing the value of the variable gravity and see how that affects the ways in which the orange and the tennis ball move. Also try changing the value of damping to see how it affects the way the tennis ball bounces.
look at the code for the orange first. It's simpler. The code for the tennis ball adds bouncing. Make sure to also look at the code for the stage. That's where the value for gravity is set for both the orange and the tennis ball. You might want to use this code in a game project or animation. Thanks to Mark Roth for help in debugging this project.