# Need help removing coliding mcs

**URL:** <https://forum.kirupa.com/t/need-help-removing-coliding-mcs/224829>\
**Category:** Uncategorized\
**Created:** [May 5, 2007, 11:27pm UTC](https://forum.kirupa.com/t/need-help-removing-coliding-mcs/224829 "2007-05-05T23:27:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![archmage\_flash](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@archmage\_flash](https://forum.kirupa.com/u/archmage_flash)\
**Post date:** [May 5, 2007, 11:27pm UTC](https://forum.kirupa.com/t/need-help-removing-coliding-mcs/224829/1 "2007-05-05T23:27:37Z")

</div>

I have a game I am working on where i need colliding mcs to be destroyed on contact with each other I have this code on the bullet mc

onClipEvent (enterFrame) {  
for (i in \_root) {  
if (\_root\*.\_name.indexOf(“newbaddie”) != -1) {  
if (this.hitTest(\_root\*) && \_root\*.\_currentframe != 11) {  
///is destroyed on 2th frame of this mc  
this.gotoAndPlay(2);  
}  
}

}}

and this on the baddie mc

onClipEvent (enterFrame) {  
for (i in \_root) {  
if (\_root\*.\_name.indexOf(“newdupe”) != -1) {  
if (this.hitTest(\_root\*) && \_root\*.\_currentframe != 11) {  
\_root.combo++;  
\_root.score+= \_root.combo;  
this.removeMovieClip();  
}  
}  
}  
}

So I need some advice on how to get rid of em both on contact because they sometimes don’t both get removed.  
Thanks:bucktooth:

PS: A link to the game is here: [http://img297.imageshack.us/my.php?image=mygamethingprototypetesvf9.swf](http://img297.imageshack.us/my.php?image=mygamethingprototypetesvf9.swf)
