BitmapData examples

Pixel Perfect Collision Detection

Wednesday, May 27th, 2009 | Game Examples AS2, Images | 6 Comments

This is a great “pixel perfect bitmap collision detection with rotation” script by Grant Skinner. This is definitely better than hitTest for rotated irregularly shaped objects and bitmap images. Works great with transparent pngs as well.

Preview

Download Fla Sample

Download Fla Sample

Original Bitmap Collision detection class by Grant Skinner
http://www.gskinner.com/blog/archives/2005/10/source_code_sha.html

Tags: , , , , , , , ,

Realistic Bitmap Smoke Trailer

Friday, January 30th, 2009 | Effects Dynamic, Game Examples AS2 | 2 Comments

Here is a new Bitmap Realistic Smoke Effect.

This is an update to the previous smoke effect version that used movieclips instead of BitmapData. The bitmap version works much faster and smoother. Check out this post for BitmapData usage examples.

Preview

Download Fla Sample

Download Fla Sample

Tags: , , , , , , , , , ,

Using BitmapData - Center Bitmap Inside MovieClip

Tuesday, January 27th, 2009 | Game Examples AS2, Images | 1 Comment

Here is a simple Flash BitmapData class example; How to attach bitmaps and center them inside their holder container movieclip.

Using bitmap images instead of vector shapes is a great way to increase performance in your flash games.

Preview

Download Fla Sample

Download Fla Sample

Tags: , , , , , ,