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?