Images
Pixel Perfect Collision Detection
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
Original Bitmap Collision detection class by Grant Skinner
http://www.gskinner.com/blog/archives/2005/10/source_code_sha.html
Using BitmapData - Center Bitmap Inside MovieClip
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
Using BitmapData - Attach Image Dynamically
Here is a simple Flash BitmapData class example; How to attach bitmaps (images) dynamically at runtime.
Using bitmap images instead of vector shapes is a great way to increase performance in your flash games.
Preview
CategoriesLinks |
