I would use MoveTo behavior. On every tick move to (Ball.x, self.y) position. Then adjust the parameters like speed, acceleration and deceleration for smooth movement.
thank you for your help dop200,
one again, what if I put ball more than one?
I tried using family but the AI player always following the X of first ball,
ai player ignoring other ball