# Collision between MovieClips

**URL:** https://forum.kirupa.com/t/collision-between-movieclips/3527
**Category:** programming
**Created:** [November 3, 2001, 4:49pm UTC](https://forum.kirupa.com/t/collision-between-movieclips/3527 "2001-11-03T16:49:13Z")
**Posts on this page:** 2
**Page:** 1

<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: [November 3, 2001, 4:49pm UTC](https://forum.kirupa.com/t/collision-between-movieclips/3527/1 "2001-11-03T16:49:13Z")

</div>

Hi all!  
I really need to know how to make two movie clips Know when they are in collision with each other.

I have a car that fires bullets and the idea is to shoot other cars and for those cars to explode.

How do i make the bullet MovieClip recognise that it is in collision with the car MovieClip?

All help or pointers to a good tutorial would be very much appreciated as always.

Kind regards to all!

---

<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: [November 3, 2001, 8:48pm UTC](https://forum.kirupa.com/t/collision-between-movieclips/3527/2 "2001-11-03T20:48:01Z")

</div>

if (mc\_bullet.hitTest(mc\_car)) {  
mc\_car gotoAndPlay (“explode”);  
//or whatever action you want  
}

as an example, the function checking the collision being hitTest, one clip before, the target in brackets. This gets activated (returns a boolean true or false) by the clips bounding boxes! so s’times it may seem it gets set to true before the clips actually touch…
