# Projectile firing and hitting an enemy?

**URL:** <https://forum.kirupa.com/t/projectile-firing-and-hitting-an-enemy/182531>\
**Category:** programming\
**Created:** [March 19, 2006, 3:56am UTC](https://forum.kirupa.com/t/projectile-firing-and-hitting-an-enemy/182531 "2006-03-19T03:56:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo\_The\_CRaZeD](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@Leo\_The\_CRaZeD](https://forum.kirupa.com/u/Leo_The_CRaZeD)\
**Post date:** [March 19, 2006, 3:56am UTC](https://forum.kirupa.com/t/projectile-firing-and-hitting-an-enemy/182531/1 "2006-03-19T03:56:09Z")

</div>

I am making a game like Galaga from the Arcade I live near,and I can’t get how you can fire a projectile and hit an enemy…I have tried many tutorials,and can’t get it…

---

<div class="post-metadata">

**Author:** ![bombsledder](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bombsledder](https://forum.kirupa.com/u/bombsledder)\
**Post date:** [March 19, 2006, 8:19pm UTC](https://forum.kirupa.com/t/projectile-firing-and-hitting-an-enemy/182531/2 "2006-03-19T20:19:27Z")

</div>

ok… what are you trying to say… your not asking a question here or saying anything about a game except you don’t understand…

looks up these definitions

hitTest(), MovieClip, \_x,\_y

and then do a google search for hitting movieclips in flash, then come back with questions

---

<div class="post-metadata">

**Author:** ![Leo\_The\_CRaZeD](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@Leo\_The\_CRaZeD](https://forum.kirupa.com/u/Leo_The_CRaZeD)\
**Post date:** [March 19, 2006, 8:54pm UTC](https://forum.kirupa.com/t/projectile-firing-and-hitting-an-enemy/182531/3 "2006-03-19T20:54:28Z")

</div>

Sorry,but I have found nothing…I tried google and it came up with 12,000,000 matches…each one just telling how to MAKE movieclips…

---

<div class="post-metadata">

**Author:** ![bombsledder](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bombsledder](https://forum.kirupa.com/u/bombsledder)\
**Post date:** [March 19, 2006, 9:24pm UTC](https://forum.kirupa.com/t/projectile-firing-and-hitting-an-enemy/182531/4 "2006-03-19T21:24:25Z")

</div>

[http://www.kirupa.com/developer/actionscript/vertical\_shooter.htm](http://www.kirupa.com/developer/actionscript/vertical_shooter.htm)

this will teach you how to make a vertical shooter, in which you will use the hitTest and hitting the enemy and removing it, everything you need

---

<div class="post-metadata">

**Author:** ![Leo\_The\_CRaZeD](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@Leo\_The\_CRaZeD](https://forum.kirupa.com/u/Leo_The_CRaZeD)\
**Post date:** [March 23, 2006, 9:59pm UTC](https://forum.kirupa.com/t/projectile-firing-and-hitting-an-enemy/182531/5 "2006-03-23T21:59:18Z")

</div>

Yes,but I need a code for just the shooting…I already have all the movement like in [Raiden X](http://crazymonkeygames.com/RaidenX.html).
