Sprite Production Field Notes

sprite ai

Move the same Sprig actor after its costume changes

A game uses sprite types for a character’s coat colors. Two actors can wear the same coat, so changing one color and then moving the first object of the new type risks moving the wrong character. A handle cached before the costume change can also become stale.

Set up two actors with the same displayed type in different cells. Give each a stable controller ID distinct from the type. Change one actor’s costume, read the live object at the intended location using the controller record, then move it. Assert that the other actor stays put and the controller still points to the moved object in the grid. If a cell can contain several sprites, verify how the controller disambiguates that lookup in the real level design.

The technical guide and test fixture describes standalone Sprig 1.1.3 replacing the stored object when its type changes. Its fixture shows a move on the old reference changing the detached object while the room remains unchanged.

Run an additional switch back to the original costume. The accepted trace should show stable controller identity across replacements, a refreshed live sprite after each switch, and consistent positions in both the record and the room.

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