# Attaching/duplicating explosions

**URL:** <https://forum.kirupa.com/t/attaching-duplicating-explosions/278490>\
**Category:** Uncategorized\
**Created:** [December 31, 2008, 2:54am UTC](https://forum.kirupa.com/t/attaching-duplicating-explosions/278490 "2008-12-31T02:54:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stillbeating](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@stillbeating](https://forum.kirupa.com/u/stillbeating)\
**Post date:** [December 31, 2008, 2:54am UTC](https://forum.kirupa.com/t/attaching-duplicating-explosions/278490/1 "2008-12-31T02:54:45Z")

</div>

im making a game where you play as a pilot and have to shoot down enemy aircrafts, when the enemy is hit with the bullet it is “reset” so it can respawn and so on.

my problem is this; in the script the enemy is originally “Enemy0” but is dupicated as “Enemy” so in the script it has to be referred to as [“Enemy”+i] i need to know how to attach the “explosion” at the enemies \_x and \_y positions when the enemy is “reset”

this is pretty much the only issue in my game so its quick solution would be great, thanks.
