# Simple hittest shooter

**URL:** <https://forum.kirupa.com/t/simple-hittest-shooter/215266>\
**Category:** Uncategorized\
**Created:** [February 5, 2007, 10:19pm UTC](https://forum.kirupa.com/t/simple-hittest-shooter/215266 "2007-02-05T22:19:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hansol](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@Hansol](https://forum.kirupa.com/u/Hansol)\
**Post date:** [February 5, 2007, 10:19pm UTC](https://forum.kirupa.com/t/simple-hittest-shooter/215266/1 "2007-02-05T22:19:27Z")

</div>

im trying to build a simple shooting game but for some reason it wont remove the movie clip when you click on it, here is a little bit of the code… ill put up the FLA if needed

```auto

onRelease = function () {
    if (_root.scopemask2.aim.hitTest(_root.target1)) {
        removeMovieClip(_root.target1);
    }
};

```
