This code shows you how to make a realistic bounce effect. Click the Green Flag to begin. Press the space bar and watch carefully what happens to the variable YVelocity.