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