A 2D puppet animation generator, faces included
Cutout animation bends one drawing on bones instead of drawing every frame again. asset puppet does that to a character picture, on your machine and for free: it lays bones along the outline, keys a set of moves for the body you name, and bakes them onto a sheet. asset faces adds expressions, so the character frowns as it swings and winces when it is hit instead of staring blankly through the fight.
The commands
asset look marsh "soft hand-painted swamp, round friendly shapes, side view" --view side
asset character toad "a round little toad warrior in a leaf hat" --via puppet --body biped --view side
asset image toad-face-angry "the same character in the same pose and view, only its face changed: angry, brows down, mouth wide" --ref public/assets/toad.png
asset faces toad
asset sheet toad-keys --of public/assets/toad.png --clips idle,attack,combo
asset puppet toad --body biped --view side --fps 12Six bodies, each keyed its own way
--body tells the puppet how the thing moves:
- biped: strides, or waddles when it faces the camera;
- quadruped: walks on four and slumps when beaten;
- flier: its wings turn at their roots;
- serpent: a wave runs from head to tail;
- crawler: many legs stepped in code, or following a painted
<name>-leg.png; - blob: all squash and stretch.
Each bakes idle, a move, attack, hit and defeat onto <name>-sheet.png with its atlas and <name>.anim.json. Every clip plays in place, since moving the body across the level is the game's job.
Faces that change with the action
An expression is an edit of the whole picture with only the face changed, asked with asset image and --ref to the character. asset faces <name> fits those edits back, finds the face wherever they changed it, so a crab's face in its shell is found the same way as a biped's, and writes them as <name>-faces.png with <name>.faces.json. Any rig made from that picture wears them. An edit that fits poorly is left out and reported rather than pasted on.
On the puppet route, asset character asks the expressions for you. --no-faces is for things that have none, a slime or a rock.
Drawn key poses for the big moments
Bending a drawing suits loops: a breath, a stride, a wing beat. A strike reads better from drawn poses. asset sheet <name>-keys --of <name>.png draws them, and the puppet uses them in place of its own one-shots: a wind-up that coils, a snapped swing, a strike that lands, a follow-through. combo draws three strikes, each starting where the last ended. The loops stay the puppet's own, which hold steady. Effects such as a hit flash or particles belong to the game, drawn live on top.
Questions people ask
Is the puppet really free?
Yes. asset puppet and asset faces run on your machine with no model call. The pictures they start from, the expression edits and the drawn key poses are paid image calls.
Does it work for a top-down game?
Yes. --view topdown bakes the set for a camera above, and asset character runs the puppet once per facing the view needs.
When is a puppet the wrong choice?
For a richly painted character that turns and twists a lot, a filmed clip keeps the design better. The 2D character animation page covers that route.
Install it, then ask for the look.
Get an asset keyMake a key in the Tyrbo app, then run asset login. Add --mock to try any command free first.