I know I need to find out how to write an if statement that says when a line hits the ellipse play a sound. I know the position of the ellipse is mouseX and mouseY and the dimentions are 50pixels by 20pixels, but i cant quite work out where each line is being drawn exactly and how to arrange it in an if statement? Please help I have been at it for hours and have gotten nowhere.
First it says that it cannot find anything called "i", then when I take away the [i] from each yCoord in the if statement it says incompatible operand types foat[] and int. How do I fix this?
I know I need to find out how to write an if statement that says when a line hits the ellipse play a sound. I know the position of the ellipse is mouseX and mouseY and the dimentions are 50pixels by 20pixels, but i cant quite work out where each line is being drawn exactly and how to arrange it in an if statement? Please help I have been at it for hours and have gotten nowhere.