# hitTesting among duplicate MC's

**URL:** <https://forum.kirupa.com/t/hittesting-among-duplicate-mcs/152622>\
**Category:** programming\
**Created:** [June 26, 2005, 5:14am UTC](https://forum.kirupa.com/t/hittesting-among-duplicate-mcs/152622 "2005-06-26T05:14:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coycash](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@coycash](https://forum.kirupa.com/u/coycash)\
**Post date:** [June 26, 2005, 5:14am UTC](https://forum.kirupa.com/t/hittesting-among-duplicate-mcs/152622/1 "2005-06-26T05:14:05Z")

</div>

i have a game where there are multiple bullets being fired, and multiple ‘foo’ monsters being shot at. is there a simple way to do hitTesting for this, other than something horrible like a double-nested loop?

//here i create several bullets at any time  
newBullet=\_root.bullet\_mc.duplicateMovieClip(“bullet”+z,z);

//here i create several foo monsters at any time  
newFoo = \_root.foo\_mc.duplicateMovieClip(“foo”+f,f++);
