# Making the object bounce when hit

**URL:** https://forum.kirupa.com/t/making-the-object-bounce-when-hit/18865
**Category:** flash
**Created:** [April 22, 2003, 3:46am UTC](https://forum.kirupa.com/t/making-the-object-bounce-when-hit/18865 "2003-04-22T03:46:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Curoy](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@Curoy](https://forum.kirupa.com/u/Curoy)
#### Post date: [April 22, 2003, 3:46am UTC](https://forum.kirupa.com/t/making-the-object-bounce-when-hit/18865/1 "2003-04-22T03:46:43Z")

</div>

I have read the Tutorial in random movement in Flash MX. Its nice but can you help me in making them bounce back if they hit each other…

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: [April 22, 2003, 4:15am UTC](https://forum.kirupa.com/t/making-the-object-bounce-when-hit/18865/2 "2003-04-22T04:15:07Z")

</div>

Check this thread…

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=16375](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=16375)

Its got a .zip file of a script that does just that.

NOTE: It’s not easy, which is why I posted that link, because I don’t know how to do it myself.

---

<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: [April 22, 2003, 8:44am UTC](https://forum.kirupa.com/t/making-the-object-bounce-when-hit/18865/3 "2003-04-22T08:44:59Z")

</div>

Thanks Man…so much!  
I think the logic behind bouncing is that when the two Movie clip will occupy the same X and Y…I was kind a looking with the HitTest method though. But anyways thanks
