# Mass hittest?

**URL:** <https://forum.kirupa.com/t/mass-hittest/267791>\
**Category:** Uncategorized\
**Created:** [August 5, 2008, 6:59pm UTC](https://forum.kirupa.com/t/mass-hittest/267791 "2008-08-05T18:59:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fugnug](https://avatars.discourse-cdn.com/v4/letter/f/a87d85/32.png) [@fugnug](https://forum.kirupa.com/u/fugnug)\
**Post date:** [August 5, 2008, 6:59pm UTC](https://forum.kirupa.com/t/mass-hittest/267791/1 "2008-08-05T18:59:38Z")

</div>

I finally finished my PacMan game. There is just one problem. It’s slow. I think it’s because I have this in the first frame of the dots that PacMan eats.

if (this.hitTest(this.\_parent.pacman)) this.unloadMovie();

I tried using an onEnterFrame first. That slowed the game down too much (we are talking over 500 pieces of PacMan corn here), so then I tried putting that it in an interval about 100 miliseconds. That sped it up a little, but it still slowed the game noticeable and also I fear that with an interval, it may skip over dots on faster computers. Is there a way I can use a mass hitTest from outside the dot movieclip, or is there a better way to do it?
