# Hittest, loops and the like!

**URL:** <https://forum.kirupa.com/t/hittest-loops-and-the-like/60698>\
**Category:** flash\
**Created:** [August 11, 2004, 8:31pm UTC](https://forum.kirupa.com/t/hittest-loops-and-the-like/60698 "2004-08-11T20:31:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TjomasC](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@TjomasC](https://forum.kirupa.com/u/TjomasC)\
**Post date:** [August 11, 2004, 8:31pm UTC](https://forum.kirupa.com/t/hittest-loops-and-the-like/60698/1 "2004-08-11T20:31:36Z")

</div>

Ok, I know there’s all these posts on how to use For… loops to hittest, but no matter how hard I try, they just don’t work.

So, after hours of hair tearing, paceing and starting a new game I’ve decided to bother you all for help.

My situation is that in the game I’m making, I have a movable turret firing duplicated bullets. I need to hittest them against a duplicated set of oncoming robots. I’ve tried using a for loop, but I just can’t get it to work.

I’ve attached the .FLA, and I would be grateful if anyone could point out what I’m doing wrong (ignore the values for removing the clips and the random duplication; I had to shrink the stage size to make the file size smaller!)

Thankyou! :puzzle:

---

<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:** [August 11, 2004, 9:02pm UTC](https://forum.kirupa.com/t/hittest-loops-and-the-like/60698/2 "2004-08-11T21:02:56Z")

</div>

here it is 🙂  
hope this helps.

---

<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:** [August 12, 2004, 9:53am UTC](https://forum.kirupa.com/t/hittest-loops-and-the-like/60698/3 "2004-08-12T09:53:13Z")

</div>

Thankyou cyberathlete,

You saved my week!

I see what I was doing wrong now as well…

---

<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:** [August 13, 2004, 5:19pm UTC](https://forum.kirupa.com/t/hittest-loops-and-the-like/60698/4 "2004-08-13T17:19:44Z")

</div>

Glad to help. 🐇
