# Random moving & hitTest (boids)

**URL:** <https://forum.kirupa.com/t/random-moving-hittest-boids/23713>\
**Category:** Uncategorized\
**Created:** [June 21, 2003, 8:48am UTC](https://forum.kirupa.com/t/random-moving-hittest-boids/23713 "2003-06-21T08:48:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawnfading](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@dawnfading](https://forum.kirupa.com/u/dawnfading)\
**Post date:** [June 21, 2003, 8:48am UTC](https://forum.kirupa.com/t/random-moving-hittest-boids/23713/1 "2003-06-21T08:48:29Z")

</div>

Hi!  
My first and ambitious post on kirupa… I’m curious to find out!  
Here’s my actionscript problem (high newbi-ness):

if you have the FLASHMX random moving cones tutorial on this site, how would I expand that movie to do the following:  
If two cones hit each other (hitTest): they show a flash and then go on moving randomly, but now sticking together (one after the other, horizontally).

With hitTest you always need 2 different movies it seems, while the cones from the tutorial are just all the same instances. So I don’t know how hittest can monitor say like 40 different cones at once to see if they hit another one, and then do the behaviour i talked about…

please enlight me with examples and tips :sigh:
