# Collision with 5 different objects

**URL:** <https://forum.kirupa.com/t/collision-with-5-different-objects/322306>\
**Category:** flash\
**Created:** [May 17, 2011, 3:19pm UTC](https://forum.kirupa.com/t/collision-with-5-different-objects/322306 "2011-05-17T15:19:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pake](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@pake](https://forum.kirupa.com/u/pake)\
**Post date:** [May 17, 2011, 3:19pm UTC](https://forum.kirupa.com/t/collision-with-5-different-objects/322306/1 "2011-05-17T15:19:14Z")

</div>

Hello I’ve got a simple function checking the collision between one object to four others. I’m pretty sure I made it work earlier today but it doesn’t anymore, I’m utterly perplexed by this.

```auto

                if(square, edge1, edge2, edge3, edge4.hitTestObject(Circle)){
                            
                            gotoAndStop(46);
                            removeChild(Circle);

             removeEventListener(MouseEvent.MOUSE_DOWN,mousePress);
             removeEventListener(Event.ENTER_FRAME,doAll);
                            
                        }

```

It only collides with the square, which is the first object stated.  
I’ve tried using one of these “checks” for each object but that doesn’t work either.  
Is the code faulty in any way, or is there another solution to this?

Thanks in advance
