O'Reilly logo

AdvancED Game Design with Flash by Rex van der Spuy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required