This is my current code:
If pongBall.Bounds.Right >= paddleRight.Bounds.Left And pongBall.Bounds.Right < (paddleRight.Bounds.Left + 20) And pongBall.Bounds.Bottom > paddleRight.Bounds.Top And pongBall.Bounds.Top < paddleRight.Bounds.Bottom Then
End if
is there a better way to do it... this is so long and painful to repeat... does anyone know a better / shorter way to code it?
If pongBall.Bounds.Right >= paddleRight.Bounds.Left And pongBall.Bounds.Right < (paddleRight.Bounds.Left + 20) And pongBall.Bounds.Bottom > paddleRight.Bounds.Top And pongBall.Bounds.Top < paddleRight.Bounds.Bottom Then
End if
is there a better way to do it... this is so long and painful to repeat... does anyone know a better / shorter way to code it?