I'm making one of those brick games where you break the bricks with a ball. I know how to make it so you can drag the base where the ball bounces anywhere, but I need it so you can only drag it left and right, not up and down at all.
How would I do this?
Drag the base sprite to where the drag x is, but keep the original y of the sprite.