I am creating an FPS-like game via C# form. It is the first game I'm writing, so take it easy :p Anyway, the main idea is that the program would recognize when user's cursor hovers on a character. Now lets say that the character's coordinates are (X,Y) and I want to check if the cursor is within.. a range of 10. To check this, I can use 2 conditions of for loops, but I believe there is a better way for checking it and I just don't know it. If you misunderstood what my intention is, post here and I will try to clarify it. Thank you
问问题
123 次