# Collision Detection

**URL:** <https://forum.kirupa.com/t/collision-detection/29815>\
**Category:** Uncategorized\
**Created:** [August 31, 2003, 9:27am UTC](https://forum.kirupa.com/t/collision-detection/29815 "2003-08-31T09:27:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![WizzoMaFizzo](https://avatars.discourse-cdn.com/v4/letter/w/b487fb/32.png) [@WizzoMaFizzo](https://forum.kirupa.com/u/WizzoMaFizzo)\
**Post date:** [August 31, 2003, 9:27am UTC](https://forum.kirupa.com/t/collision-detection/29815/1 "2003-08-31T09:27:01Z")

</div>

Hey

can anyone tell me how i can make a collision between a bullet, a club and a helmet.  
i have the shooting in the bag but i need to know how i can do this.

when the bullet is shot if it hits the club i want the bullet to be destroyed.  
if the bullet hits the helmet i need the game to go to the next scene.

thnx

---

<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:** [August 31, 2003, 3:34pm UTC](https://forum.kirupa.com/t/collision-detection/29815/2 "2003-08-31T15:34:17Z")

</div>

There are TONS of these tutorials out there, and they can be found with very little searching (especially the keywords ‘collision detection’).

The easiest way with a bullet -\> object collision is prolly to use coordinate based hitTest (where you give flash the coordinates of a point and have it check the existence of other movie clips at that point).

---

<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:** [August 31, 2003, 8:32pm UTC](https://forum.kirupa.com/t/collision-detection/29815/3 "2003-08-31T20:32:39Z")

</div>

or with hitTest  
or you could do it mathematically… which is a bit harder and uses trigonometry, i’ve been trying to learn this, but it’s hard because i’m only a sophomore in high school, and haven’t gotten that far in my math classes… a book that would explain how to do this is  
"flash mx game design demystified"

---

<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:** [September 1, 2003, 3:29am UTC](https://forum.kirupa.com/t/collision-detection/29815/4 "2003-09-01T03:29:43Z")

</div>

> \*Originally posted by Yeldarb \*  
> **or with hitTest…**

> _Originally posted by jingman_  
> \*\*use coordinate based hitTest \*\*

:thumb:
