onClipEvent (enterFrame) {
for (i=0; i<3; i++) {
if (this.hitTest(_root["person"+i])) {
gore = Math.floor(Math.random()*3);
index++;
_root["blood"+gore].duplicateMovieClip("pile"+index, index);
_root["pile"+index]._x = _root["person"+i]._x;
_root["pile"+index]._y = _root["person"+i]._y;
this.removeMovieClip();
}
}
}
When it hits the person the “pile” is created, but when another is created the old one disapears. Hence, you only have one and it moves around. How can I fix this so that each time a new one is created and it just stays there?