Chapter 5. Pixel-Perfect Collision and Destructible Environments

Pixel-Perfect Collision and Destructible Environments

The techniques we've looked at so far won't help with pixel-perfect collision—at least, not easily. To create environments that are malleable on the smallest pixel level, we need to tackle one more great collision-detection system every Flash game designer should know: bitmap collision.

We're going to cover many interesting topics in this chapter. You'll learn how to do the following:

  • Convert sprites and movie clips to bitmaps.

  • Figure out if two bitmap objects are colliding.

  • Separate colliding bitmaps to create a solid collision boundary.

  • Build concave and convex bitmap environments for ...

Get AdvancED Game Design with Flash now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.