press space I want to make a bouncing engine that halves the bounce each time until it stops. Any ideas how i would tell it to do that?