# Collision detection problem

**URL:** https://forum.kirupa.com/t/collision-detection-problem/20867
**Category:** flash
**Created:** [May 14, 2003, 7:58am UTC](https://forum.kirupa.com/t/collision-detection-problem/20867 "2003-05-14T07:58:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RuZ](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@RuZ](https://forum.kirupa.com/u/RuZ)
#### Post date: [May 14, 2003, 7:58am UTC](https://forum.kirupa.com/t/collision-detection-problem/20867/1 "2003-05-14T07:58:47Z")

</div>

Hi,

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 🙂

SWF : [http://www.rus.lico.nl/flash/spel.swf](http://www.rus.lico.nl/flash/spel.swf)  
FLA : [http://www.rus.lico.nl/flash/spel.fla](http://www.rus.lico.nl/flash/spel.fla)

my code is all flash MX

plz reply… thnxx
