# Firing a bullet to hit an object HELP!

**URL:** <https://forum.kirupa.com/t/firing-a-bullet-to-hit-an-object-help/17041>\
**Category:** Uncategorized\
**Created:** [March 31, 2003, 7:24pm UTC](https://forum.kirupa.com/t/firing-a-bullet-to-hit-an-object-help/17041 "2003-03-31T19:24:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikeyb](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mikeyb](https://forum.kirupa.com/u/mikeyb)\
**Post date:** [March 31, 2003, 7:24pm UTC](https://forum.kirupa.com/t/firing-a-bullet-to-hit-an-object-help/17041/1 "2003-03-31T19:24:46Z")

</div>

I am getting a bit annoyed as i have tried a lot of different things but i just can get something to happen when 2 different objects

so…these are these things I want to be able to do in order :

1. an object (bullet) to be fired from another object.

2. the bullet to collide with another still object.

3. when the collision has happened goto a different frame eg. 5

( I would like to be able to edit the frame. )

can someone please help me with the actionscript needed to complete this task,

thanx

Mike

---

<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:** [March 31, 2003, 9:09pm UTC](https://forum.kirupa.com/t/firing-a-bullet-to-hit-an-object-help/17041/2 "2003-03-31T21:09:12Z")

</div>

Can you be a bit more specific about what you’re trying to achieve, Mickey?

---

<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:** [March 31, 2003, 9:17pm UTC](https://forum.kirupa.com/t/firing-a-bullet-to-hit-an-object-help/17041/3 "2003-03-31T21:17:19Z")

</div>

ok lets try this i want when a bullet collides with a movie clip it jumps to frame 5

---

<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:** [March 31, 2003, 9:30pm UTC](https://forum.kirupa.com/t/firing-a-bullet-to-hit-an-object-help/17041/4 "2003-03-31T21:30:04Z")

</div>

Try the tute about hitTest.  
I asked you that question because the collision detection can change depending on the configuration of your game (or whatever it is you’re trying to do): first-person shooter, side-scrolling shooter…
