This project explains how you can make a sprite fall down, go up again on the same y axis and fall again. When it falls again, the x axis will be changing but the y axis would remain the same. You can change the slides using the arrow keys.
All by me