Draw a line and the ball will follow it always. The ball will follow the line the same speed you go.
coding all by me