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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.