sprite sheet maker
Check That Collider Extraction Reads the Sprite’s Intended Mask Channel
A color photograph and a collision mask can look similar in a preview, yet require different channels at import. For an atlas of sprites with transparent backgrounds, accidentally reading RGB brightness can erase a legitimate silhouette or include invisible pixels.
Give each supported input form a fixture
For an RGBA source, prepare a rectangle whose covered and transparent areas have the same red value. Require an outline around the visible region. Then prepare a separate artist-authored grayscale mask with full image alpha and ensure that its gray channel, selected explicitly in that import mode, defines the obstacle. A coverage test on only one representation is easy to pass with a hardcoded channel.
Document the mask representation and sampling origin in the release manifest. Use a known point inside the shape and another outside rather than accepting any nonempty outline. FrameSprite's technical guide and test fixture shows the Pymunk result when red and alpha carry different information. Keep both fixtures when changing PNG decoders, especially where a palette image can supply indices before expansion to RGBA.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.