# Help with actionscript/

**URL:** <https://forum.kirupa.com/t/help-with-actionscript/13891>\
**Category:** flash\
**Created:** [February 19, 2003, 2:34pm UTC](https://forum.kirupa.com/t/help-with-actionscript/13891 "2003-02-19T14:34:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yarden](https://avatars.discourse-cdn.com/v4/letter/y/f6c823/32.png) [@yarden](https://forum.kirupa.com/u/yarden)\
**Post date:** [February 19, 2003, 2:34pm UTC](https://forum.kirupa.com/t/help-with-actionscript/13891/1 "2003-02-19T14:34:01Z")

</div>

in the tutorial: Game:how to fire, how can I do that if the fire hit for exmple…in monster I draw…so how can I do that if the fire Hit the monster, the monster do a little movie I did and right after that he disappear from the movie?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 2:42pm UTC](https://forum.kirupa.com/t/help-with-actionscript/13891/2 "2003-02-19T14:42:36Z")

</div>

Well… Whatever the instance names given to the bullets are…

fire1… etc… For instances… Inside of the main movieclip to control these bullets you wnat to have a hittest going on…

```php

for(x=0; x<numMonstersOnScreen; x++)
{
   if(_root["monster"+x].hitTest(this._x, this._y, true)
   {
      _root["monster"+x].gotoAndPlay(#);
   }
}

```

Give that a whirl… For every monster on screen… It’ll test if that current bullet hits the monster or not… And if it does… It’ll play the movie inside of that monster… By using that #.

In the actual movie at the very end of it dissappearing you will wnat to put a this.removeMovieClip();

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 2:51pm UTC](https://forum.kirupa.com/t/help-with-actionscript/13891/3 "2003-02-19T14:51:28Z")

</div>

thanks! But…it’s Hard to to me to understand what you wrote…  
I just 13.5 years old…(Dont laugh! lol)

so…you can pls Do a little game and upload him?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 2:55pm UTC](https://forum.kirupa.com/t/help-with-actionscript/13891/4 "2003-02-19T14:55:17Z")

</div>

I would but my sheer attention is devoted on a couple of sites I need to finish… I apologize for this… Perhaps someone on the forums could help you…

And I also only have my example of shooting… Which is different from Kirupa’s 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 2:57pm UTC](https://forum.kirupa.com/t/help-with-actionscript/13891/5 "2003-02-19T14:57:23Z")

</div>

ok, thanks anyway…

someone else can help me pls?
