You should be able to use the arrow keys to determine which way a pad is moving (if it is moving). And you should be able to use the increase/decrease in the x property to determine which way the ball is moving.
Hi Ned Murphy,
Thanks for the quick reply. But here ball doest not move according to the pad direction Ball has it's own angle. If the ball is nearing to the pad we need to increase the ball bounce angle and vice versa.
How can we calculate ball is nearing to pad or not
I don't see where needing to know how close you are to the pad has anything to do with what happens when the two objects are touching. You won't be calculating the bounce until they touch.