Sprite Production Field Notes

sprite ai

Test a two-sprite handoff with mixed item order

A paired animation shows a courier passing a parcel to a second character. Both characters need to sample the matching sockets from the same pre-update pose. If one actor reads the other after it updates, the shared prop can snap to a position that belongs to the next cel.

Build a tiny handoff fixture with different socket coordinates before and after the handoff. Give the two actors different input positions, then add them to the scene in both orders. Log the sampled cartesian coordinates and the selected cels in the draw just before, during, and after the handoff. Rotated sprites can help expose an accidental local-coordinate comparison.

The technical guide and test fixture describes how Qt 6.8.3 runs both phases of QGraphicsScene.advance. Its fixture swaps two saved positions using a phase 0 snapshot and observes an ordering-dependent result when the items reread live positions during phase 1.

Use a small record per scene step to carry the old pose indices and scene-space sockets. Derive the prop location and new poses from that record. The two insertion orders should produce the same handoff trace, even if they produce different drawing order for unrelated items.

Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.