# Help! Shooter Games

**URL:** <https://forum.kirupa.com/t/help-shooter-games/20064>\
**Category:** Uncategorized\
**Created:** [May 4, 2003, 8:25pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064 "2003-05-04T20:25:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fargate](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@Fargate](https://forum.kirupa.com/u/Fargate)\
**Post date:** [May 4, 2003, 8:25pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/1 "2003-05-04T20:25:45Z")

</div>

I was just looking at the the tutorial in the tutorial section on how to make a shooter. That’s easy enough…The thing I want to know is how would you make it so that when you shoot a bullet and it hits a target, that target explodes, and if one of the targets where to hit you(the mc shooting the bullets) what would you need to do to make the movie go to a game over frame. I know it involves hittest, but that’s about it. Any help will be greatly appreciated. Thanks.:cool:

---

<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:** [May 4, 2003, 8:51pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/2 "2003-05-04T20:51:36Z")

</div>

Yep, you got the right idea. Here is a hitTest tutorial:

[http://www.kirupa.com/developer/actionscript/hittest.htm](http://www.kirupa.com/developer/actionscript/hittest.htm)

If you can understand that tutorial you might be able to figure out how to get the shooter working… good luck. If you need more help then post back.

---

<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:** [May 4, 2003, 8:56pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/3 "2003-05-04T20:56:41Z")

</div>

Oh thanks a lot…I 'll go fiddle around, see if I can come up with something.

---

<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:** [May 4, 2003, 9:13pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/4 "2003-05-04T21:13:02Z")

</div>

I tried adding on to the fire\_tutorial(from tutorial section here on Kirupa) but just ended up screwing it up…I’ve attached my modified version. What I basically want to happen, is that when I fire the star(my bullet) from the crab and it intersects with the Target MC, I want the Target MC to go to it’s second frame and play! Someone please tell me what’s wrong!Thanks.

---

<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:** [May 5, 2003, 12:41pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/5 "2003-05-05T12:41:58Z")

</div>

Anyone?..I really need to know this!

---

<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:** [May 5, 2003, 1:16pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/6 "2003-05-05T13:16:58Z")

</div>

i didn’t check the fla so the answer may be mmuch more difficult then this, but doesn’t gotoAndPlay work!?

---

<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:** [May 5, 2003, 7:03pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/7 "2003-05-05T19:03:59Z")

</div>

works now, just syntax problems and you had not actually drawn different graphic states of the circle so you wouldnt see the diiference…

---

<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:** [May 5, 2003, 11:36pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/8 "2003-05-05T23:36:25Z")

</div>

Thanks a lot mlk design and everyone else who tried to help! Wow…hehe must go tinker around…Thanks a lot!!!:beam::beam::beam::beam::beam:

---

<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:** [May 5, 2003, 11:46pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/9 "2003-05-05T23:46:42Z")

</div>

Grrr…one problem…If i make copies of my target and shoot them…only the original works…why…? The code doesn’t change…it keeps the same instance name “target”…what’s going on!

---

<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:** [May 6, 2003, 10:36am UTC](https://forum.kirupa.com/t/help-shooter-games/20064/10 "2003-05-06T10:36:10Z")

</div>

wait what’d you mean? you manually copied them ? or you duplicated them using AS?

---

<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:** [May 6, 2003, 8:42pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/11 "2003-05-06T20:42:27Z")

</div>

Manually copied so I could have more targets to shoot at and only the original works!Why!Help! Please anyone!

**EDIT:**

It would be good to find out how to do it with actionscript though…might be easier than manually doing it…

---

<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:** [May 7, 2003, 12:28am UTC](https://forum.kirupa.com/t/help-shooter-games/20064/12 "2003-05-07T00:28:05Z")

</div>

that is because everything can only have one single instance name, and so it doesn’t work. but, using the duplicateMovieClip method, you can check it in your actionscript dictionary, it can be done. I don’t have time to do it for you now because i have lots of work, but in about 2 days i’ll try and if you still havn’t got it 🙂

---

<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:** [May 7, 2003, 12:36am UTC](https://forum.kirupa.com/t/help-shooter-games/20064/13 "2003-05-07T00:36:44Z")

</div>

I think I get what you mean…thanks blah-de-blah. I’ll go look at it in the AS dictionnary…

---

<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:** [May 7, 2003, 3:04am UTC](https://forum.kirupa.com/t/help-shooter-games/20064/14 "2003-05-07T03:04:30Z")

</div>

oh yea, can you post your fla so i can work from that when i have time if you still don’t get it that is…thank you 🙂

---

<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:** [May 7, 2003, 8:25pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/15 "2003-05-07T20:25:32Z")

</div>

Ok thanks Blah de Blah. Here’s the source file. If you could show me how to make a score thing too so that when I hit one of the targets it adds so many points to my score. I know it ties in to the score tutorial here, but I have no idea how to pull that together with what I’m doing…anyways thanks in advance blah de blah :).

**EDIT**

One other thing I forgot to mention. How would I get it so that if my crab, the player, not the bullet, hittested with one of the targets, the main timeline would go to frame two, where my game over msg is displayed. I tried putting this hitTest script in my target but I get errors…I dunno. Here’s the script I was using:

[AS]onClipEvent (enterFrame) {  
if (\_root.this, hitTest(\_root.crab)) {  
\_root.target.gotoAndPlay(2);  
}[/AS]

Makes sense to me… ‘this’ refers to target and crab is the instance name given to my player. Oddly enough the crab doesn’t appear blue even though it is a valid instance name!..HELP!

---

<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:** [May 7, 2003, 11:07pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/16 "2003-05-07T23:07:43Z")

</div>

good luck with your shooter

---

<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:** [May 7, 2003, 11:10pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/17 "2003-05-07T23:10:03Z")

</div>

I am very interested in other peoples designs so when you are done if you would give me a link and show it to me i would be very greatfull

---

<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:** [May 8, 2003, 11:08pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/18 "2003-05-08T23:08:42Z")

</div>

blah de blah you there…see my other post plz.

---

<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:** [May 10, 2003, 1:06am UTC](https://forum.kirupa.com/t/help-shooter-games/20064/19 "2003-05-10T01:06:30Z")

</div>

hello…just posting to bring this back to the front…

---

<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:** [May 11, 2003, 8:50pm UTC](https://forum.kirupa.com/t/help-shooter-games/20064/20 "2003-05-11T20:50:02Z")

</div>

Someone…Anyone just help me!!!..I’m so close to figuring this out…this is driving me nuts!!!

[Next page](https://forum.kirupa.com/t/help-shooter-games/20064.md?page=2)
