Collision detection problem


well i am trying to make a little game with a guy walking across the screen. When pressing somewhere it creates a line from the player to the point u clicked. The problem is that i have a collision detection that checks if the line hits a building or something. This works a little bit, but sometimes when the line doesn’t hit the building it still tells me it did, but on the screen u can clearly see it’s not hitting anything.

i’ve uploaden my swf and fla so u can look at it. It’s a mess but i am just a beginner so :slight_smile:


my code is all flash MX

plz reply… thnxx