# hitTest not functioning properly ? \[renamed\]

**URL:** <https://forum.kirupa.com/t/hittest-not-functioning-properly-renamed/182808>\
**Category:** flash\
**Created:** [March 21, 2006, 4:04pm UTC](https://forum.kirupa.com/t/hittest-not-functioning-properly-renamed/182808 "2006-03-21T16:04:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![butman](https://avatars.discourse-cdn.com/v4/letter/b/ee7513/32.png) [@butman](https://forum.kirupa.com/u/butman)\
**Post date:** [March 21, 2006, 4:04pm UTC](https://forum.kirupa.com/t/hittest-not-functioning-properly-renamed/182808/1 "2006-03-21T16:04:22Z")

</div>

[CENTER][SIZE=6]HitTest[/SIZE][/CENTER]  
[LEFT]  
Hello!:cop:  
I’we get a big problem and wondered if you could help me.:tb:  
In the code something is wrong, it’s just don’t wont to work!:puzzle:  
Here’s the code!🥚

```auto

onClipEvent (enterFrame) {
 if (this.hitTest(bomb)) {
  gotoAndStop("GameOver", 1);
 }
}

```

:king:

Thanks:hugegrin:  
Albert:drool:[/LEFT]

---

<div class="post-metadata">

**Author:** ![999](https://avatars.discourse-cdn.com/v4/letter/9/c5a1d2/32.png) [@999](https://forum.kirupa.com/u/999)\
**Post date:** [March 21, 2006, 4:51pm UTC](https://forum.kirupa.com/t/hittest-not-functioning-properly-renamed/182808/2 "2006-03-21T16:51:35Z")

</div>

You need to target the correct path to both your bomb clip and your “Game Over” frame. Without knowing what those are I’ll just guess that it would be something like this.

```auto
onClipEvent (enterFrame) {
 if (this.hitTest(_parent.bomb)) {
this.gotoAndStop("GameOver", 1);
 }
}

```

---

<div class="post-metadata">

**Author:** ![butman](https://avatars.discourse-cdn.com/v4/letter/b/ee7513/32.png) [@butman](https://forum.kirupa.com/u/butman)\
**Post date:** [March 22, 2006, 5:01pm UTC](https://forum.kirupa.com/t/hittest-not-functioning-properly-renamed/182808/3 "2006-03-22T17:01:18Z")

</div>

Thanks  
I don’t know, even that didn’t help is it becouse I’ve get many bombs?

---

<div class="post-metadata">

**Author:** ![Voetsjoeba](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@Voetsjoeba](https://forum.kirupa.com/u/Voetsjoeba)\
**Post date:** [March 22, 2006, 5:03pm UTC](https://forum.kirupa.com/t/hittest-not-functioning-properly-renamed/182808/4 "2006-03-22T17:03:17Z")

</div>

Butman - please user better thread titles in the future: Titles like HitTest!!!Omg!HelpPlz!!!1111oneon isn’t really of much information to whoever reads it 🙂

---

<div class="post-metadata">

**Author:** ![butman](https://avatars.discourse-cdn.com/v4/letter/b/ee7513/32.png) [@butman](https://forum.kirupa.com/u/butman)\
**Post date:** [March 23, 2006, 3:46pm UTC](https://forum.kirupa.com/t/hittest-not-functioning-properly-renamed/182808/5 "2006-03-23T15:46:05Z")

</div>

Oh, sorry.  
But I’ve written to this forom to get an answere on my quetion. And I don’t f\*cking care which title I should have.  
I just wondered.

Thanks  
Nice to chat with you anyway _Voetsjoeba_

---

<div class="post-metadata">

**Author:** ![butman](https://avatars.discourse-cdn.com/v4/letter/b/ee7513/32.png) [@butman](https://forum.kirupa.com/u/butman)\
**Post date:** [March 23, 2006, 7:21pm UTC](https://forum.kirupa.com/t/hittest-not-functioning-properly-renamed/182808/6 "2006-03-23T19:21:43Z")

</div>

Sorry, I was iretaded:worried: .  
But, why dosen’t it work?

thanks  
If you wonna I can post the project, just ask
