Just press the flag and move the mouse around and it will create a right triangle where the hypotenuse is the line connecting your mouse to the middle. I just made this to try it out, I may use my knowledge gained from it in other games. Take a look inside, I made the code simple and easy to understand.