# Collision Detect problem

**URL:** <https://forum.kirupa.com/t/collision-detect-problem/8096>\
**Category:** flash\
**Created:** [November 13, 2002, 8:02pm UTC](https://forum.kirupa.com/t/collision-detect-problem/8096 "2002-11-13T20:02:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abraxxas](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@Abraxxas](https://forum.kirupa.com/u/Abraxxas)\
**Post date:** [November 13, 2002, 8:02pm UTC](https://forum.kirupa.com/t/collision-detect-problem/8096/1 "2002-11-13T20:02:05Z")

</div>

When my Movie Clip “Fire” collides with the MC “Wall” i want the variable “Points” to increase by one. And not as in

if (\_root.fire.\_y == \_root.wall.\_y && \_root.fire.\_x == \_root.wall.\_x) {  
\_root.points++  
}

Because then they have to be on the exact same coordinates. Wall, however, is a pretty long Mc and i want the same thing to happen no matter where the fire hits it

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 13, 2002, 10:18pm UTC](https://forum.kirupa.com/t/collision-detect-problem/8096/2 "2002-11-13T22:18:53Z")

</div>

there’s a tute on collision detection using hitTest!  
[http://www.kirupa.com/developer/actionscript/hittest.asp](http://www.kirupa.com/developer/actionscript/hittest.asp)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 14, 2002, 11:25am UTC](https://forum.kirupa.com/t/collision-detect-problem/8096/3 "2002-11-14T11:25:36Z")

</div>

Jeje, thankx! works great
