I am developing a double bouncer game below is the requirement.
In this i had a doubt how can i increase the ball bounce angle if pad and ball moving in same direction and how to reduce the ball bounce angle if the pad and ball is not moving in same direction how can i detect whether the ball and pad moving in same direction or not.
Please help me out to solve this
Thanks in Advance.
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