# Help\>Multiple Collision

**URL:** <https://forum.kirupa.com/t/help-multiple-collision/241231>\
**Category:** flash\
**Created:** [October 11, 2007, 8:44am UTC](https://forum.kirupa.com/t/help-multiple-collision/241231 "2007-10-11T08:44:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aorealme](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@aorealme](https://forum.kirupa.com/u/aorealme)\
**Post date:** [October 11, 2007, 8:44am UTC](https://forum.kirupa.com/t/help-multiple-collision/241231/1 "2007-10-11T08:44:51Z")

</div>

Right now i am working on a game that requires collision between multiple object.  
In fact there or 3 array.  
Example: i have an array of 5 oranges. array of 6 apples. array of 12 bananas. array of 2 basket that can collect the fruit. lastly 1 object that the user can control.

how am I going to collide these 5 groups and makes them bounce off each other when it touches? i have tried using nested for loops and the game gets laggy as hell. hitTest() does not work well because the objects have random speed and direction.

thanks in advance.
