# HitTest

**URL:** <https://forum.kirupa.com/t/hittest/26657>\
**Category:** Uncategorized\
**Created:** [July 25, 2003, 2:58am UTC](https://forum.kirupa.com/t/hittest/26657 "2003-07-25T02:58:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BullDog\_Flash](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@BullDog\_Flash](https://forum.kirupa.com/u/BullDog_Flash)\
**Post date:** [July 25, 2003, 2:58am UTC](https://forum.kirupa.com/t/hittest/26657/1 "2003-07-25T02:58:15Z")

</div>

hello everyone See I am making this game.  
Where it has my enemies that are duplicated and my Bulets witcvh are duplicated.

The code for duplicating my Bullets is.

```auto
            gun++;
            _root.gun.duplicateMovieClip("gun"+gun, gun);
            _root["gun"+gun]._visible = true;

```

And that wroks when i press space of course.

And now my enemies.

My enemy is in one MC but when i duplicate it i put the following code in an empty MC

```auto
onClipEvent (enterFrame) {
    if (getTimer()>randomTime) {
        randomTime = getTimer()+(1000+Math.random()*10000);
        i++;
        duplicateMovieClip(_root.stick, "stick"+i, i);
    }
}

```

What I want to do is have my duplicated enemies gotoAndStop(8)  
when they get hit but the duuplicated Laser.

Someone Please help
