THIS TOOK ME WAY TOO LONG TO FIGURE OUT AHHHHH Press green flag to start Decide if you want to make polygon Making polygon: Click random locations to place down your points, then press space to connect both ends. Move your mouse around to detect if it's inside the polygon. Press 'm' to fill polygon(May take a while) How this works: If you take a ray and turn it in any direction and count the amount of times it intersects with the sides of a polygon, if the number is even, then it is outside, but if the number is odd, then it is inside. The reason this took me so long to figure out is due to the fact that when 2 lines are connecting, they share a same point value on the coordinate plane, so it should count as only 1 intersection. But when there's an L shape, it should count as 0 or 2 because it remains its current state of inside or outside the polygon. I knew what the issue was, but I struggled to fix it, but when I did I did a little dance. This could be used for off-screen collision for complex shapes.