Adobe

Strategies for optimizing collision detection with BitmapData.hitTest

Yesterday I blogged about how you can use the BitmapData.hitTest API to do collision detection between the visible parts of multiple DisplayObject instances. This works very well, but as some of the BitmapData APIs can be cpu intensive (particularly new BitmapData and BitmapData.draw) you have to take care to make sure that performance does not [...]