# Collision between bullet and monster

**URL:** <https://forum.kirupa.com/t/collision-between-bullet-and-monster/318158>\
**Category:** Uncategorized\
**Created:** [January 12, 2011, 12:14am UTC](https://forum.kirupa.com/t/collision-between-bullet-and-monster/318158 "2011-01-12T00:14:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marvin1](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@Marvin1](https://forum.kirupa.com/u/Marvin1)\
**Post date:** [January 12, 2011, 12:14am UTC](https://forum.kirupa.com/t/collision-between-bullet-and-monster/318158/1 "2011-01-12T00:14:18Z")

</div>

Guys, i just made a 2d shooting game lately. I got a question, how do you make a collision between the bullet and the monters? Here’s my code:

```auto
 enemy_mc.onEnterFrame = function () 
    { 
        if (bullet_mc.hitTest(this._x, this._y, true)) 
        { 
            this.removeMovieClip(); 
            hit.text = "true"; 
        } // end if 
    };

```

But it doesn’t seem to destroy/remove the monster when it hits or even say ‘true’ on the text on the upper left corner.  
Here’s my game:  
[http://www.swfcabin.com/open/1294787100](http://www.swfcabin.com/open/1294787100)  
My Flash: CS3
