Bouncing engine. you can test it here. It is just like the "if on edge, bounce" block, but you don't need to reach the edge, it just bounces.