"A while back I posted a demo of shape-based hit detection in Flash 8. At the time, I wasn't allowed to post the source code, but promised I would later. So here it is.
The com.gskinner.sprites.CollisionDetection class is really simple to work with, there is a single static method called checkForCollision with four parameters:"
0 comments:
Post a Comment