Originally Posted by
nothing909
can you reword that, i dont know what u mean, what should i do?
you have coordence what the ball is at and the size of a paddle. code it so that the paddles top and bottom are always within the the balls center
paddle:
height / 2 gets middle of paddle. how ever you're moving the paddle. the ball has a center
Code:
The center-radius form of the circle equation is in the format (x – h)2 + (y – k)2 = r2, with the center being at the point (h, k) and the radius being "r".
This form of the equation is helpful, since you can easily find the center and the radius.
so code it so that the paddles center is always lined up with the balls center.