sprite ai
Decide Which Parts of a Generated Pickup Can Trigger Collection
A generated pickup often has detached glints or floating fragments around its main body. Those parts may look right in the artwork without being intended pickup surfaces. Add the decision to its interaction specification before tracing any runtime shapes.
Mark three player approach points
Make a pickup with a solid body, a detached sparkle, and a clear gap. Place an overlap probe at the center of each island and a third one between them. For a body-only item, the body activates collection and the other two probes miss. For a multipart item, both islands can trigger it, but the gap should still miss. Run the same probes after switching to another approved pose that moves a decorative particle.
The technical guide and test fixture describes why one alpha silhouette can yield several outlines in Pymunk. Select contours using a purpose-built mask or a documented rule, then validate the result with the eligible interaction points. That is safer than trusting the order of the returned contours or making every bright decorative element part of the item's reach.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.