I am kind of new to Flash 8, AS2.0, but not that new to programming so I understand somethings are not possible, I think this is one of them but figured I would ask.
There are a hundred squares on the stage and one circle.
If the circle runs into a square a hit should be registered.
Now lets say all the squares are named “Square#” where # is just some number between 1 and 100.
Is there a better way to register the hit then:
//this is the circle
//Do something with the hit
The reason I ask is that if I have a bunch of circles and square the thing slows down so much its impossible to do anything.
If there is a way to register a hit without checking every single name that would be a huge plus, I highly doubt that its possible, but any other tips to speed up the hitTest would be helpful, other then checking the hitTest once every like 6 frames or so.