# Need help on the duplicated movieclips

**URL:** <https://forum.kirupa.com/t/need-help-on-the-duplicated-movieclips/112539>\
**Category:** Uncategorized\
**Created:** [June 8, 2004, 11:38pm UTC](https://forum.kirupa.com/t/need-help-on-the-duplicated-movieclips/112539 "2004-06-08T23:38:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Russkie](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@Russkie](https://forum.kirupa.com/u/Russkie)\
**Post date:** [June 8, 2004, 11:38pm UTC](https://forum.kirupa.com/t/need-help-on-the-duplicated-movieclips/112539/1 "2004-06-08T23:38:41Z")

</div>

I have this code:

//enemy  
i=1  
duplicateMovieClip(\_root.enemy1,\_root.enemy1+i, ++i);

//this code is for my player

onClipEvent (load) {  
if (this.hitTest(\_root.enemy1) and \_root.enemy1.hitbox.hitTest(this)) {  
tellTarget (\_root.enemy1) {  
gotoAndPlay(86);  
}  
}  
}

The problem is when I shot the original enemy and it dies that enemy1 code above will execute at the death frame and the movieclip duplicates itself, but the player cannot kill it anymore afterwords. I understand that my enemy has changed it’s instance name but how do I make the player able to shoot duplicated enemies without manually recreating them?

---

<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:** [June 11, 2004, 7:51pm UTC](https://forum.kirupa.com/t/need-help-on-the-duplicated-movieclips/112539/2 "2004-06-11T19:51:50Z")

</div>

answer me!
