Import character art as a sprite
import_characterConverts a character image into a Scratch sprite: removes the background, trims margins, scales it to fit the stage, and optionally creates talking costumes.
Instructions
Turns a jpg/png character picture into a sprite: cuts away the flat background so it sits properly on the backdrop, trims empty margins, scales it to fit the stage, and optionally builds talk frames — extra costumes that, alternated in a loop, make a still character look like it is talking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| file | Yes | Path to a jpg or png | |
| name | Yes | Sprite name | |
| size | No | Sprite size in percent, default 100 | |
| feather | No | Soften the cut edge by this many pixels, default 1 | |
| tolerance | No | How far a pixel may differ from the corner colour and still count as background, default 42 | |
| max_pixels | No | Longest side in pixels after scaling, default 360 | |
| talk_frames | No | Also build -talk-a and -talk-b costumes, default true | |
| remove_background | No | Cut the flat background away, default true |