# Bullet hit problem

**URL:** <https://forum.kirupa.com/t/bullet-hit-problem/113362>\
**Category:** Uncategorized\
**Created:** [June 17, 2004, 5:32am UTC](https://forum.kirupa.com/t/bullet-hit-problem/113362 "2004-06-17T05:32:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Towlie](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@Towlie](https://forum.kirupa.com/u/Towlie)\
**Post date:** [June 17, 2004, 5:32am UTC](https://forum.kirupa.com/t/bullet-hit-problem/113362/1 "2004-06-17T05:32:32Z")

</div>

i have this game. Much like madness where he shoots a bullet blah blah blah. anyways he shoots the bullet. the bullet flies hits him and dissapears. what i want is it to hit himand play a frame in the enemys movie clip. so i triedusing hit test. it didnt work. any ideas

---

<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:** [June 17, 2004, 10:57am UTC](https://forum.kirupa.com/t/bullet-hit-problem/113362/2 "2004-06-17T10:57:48Z")

</div>

i am doing a game that uses the same concept “hero” or “thing” shots “bullet” then “bullet” hits “enemy” then “enemy” goes to and play something…anyways u get the idea…here’s the code i am using in my game i had to remove some code lines so i hope it helps u…sorry if it doesnt…

onClipEvent (enterFrame) {  
if (hitTest(\_root.“enemy”)==true) {  
\_root.“enemy”.gotoAndPlay( 2 );  
}

like i told u i am not sure if this will work for u cuse i had to erase some lines and i should add i didnt write the code for my game…

by the way the (2) is the frame where the dead animation starts for the enemy after been hit by the bullet. and u dont have to change ur hittest if u have one that works already.

---

<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:** [June 17, 2004, 3:47pm UTC](https://forum.kirupa.com/t/bullet-hit-problem/113362/3 "2004-06-17T15:47:52Z")

</div>

I tried adding it. I had somthing similar to that except without add the true poart. is the true part always needed?
