# Need help on the duplicated movieclips

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