I'm struggling with this.... I want to be able to hold down a key and make my on screen player (which is a ball) jump up and then fall back to ground and bounce. If the key is held down, the ball will continue to bounce higher each time after touching the ground. When the key is released the bouncing slows to a stop just like if you dropped a ball on the ground it bounces less and less until it stops. The action I am trying to create is like bouncing a basketball but each time you hit the ball to the ground you do it a little harder so the ball bounces higher each time. Can anyone help please
O
____ 1st bounce
O
_____ 2nd bounce
O
__________ 3rd bounce