Chris
-
2009-07-31
When you load an image into a sprite at runtime, only the first instance of the sprite will receive a proper collision mask. Any other instances will receive a collision mask that doesn't conform at all to the outline of the sprite.
In the included CAP, there are two objects. The two objects are just different instances of the same sprite. When the program runs, it will ask for a PNG file to load -- for convenience, a good one for testing is included with the CAP. When you mouse over a sprite, it will turn blue. The one on the left has a perfect collision mask, but the one on the right is broken.