15. Sprite sheets, from picture to frames
On this page
15. Sprite sheets, from picture to frames
What needs preparation in Blockbench#
Linear, step, Catmull-Rom and Bezier movement is sampled at Animation FPS. Bake Molang expressions and inverse-kinematics motion before importing. Animation controllers, game events, constraints, layered textures and animated textures are not reproduced as a complete Blockbench game runtime.
Keep external texture images beside the model or in its textures folder. Embedded PNG textures are convenient because they travel with the source. Read warnings about unsupported elements; a preview containing only some of the source is not a reason to ignore those warnings.
The Asset Designer imports the model and its clips. It does not decide which imported animation is the character's idle, walk or talk state. Make those assignments in the Character Designer after the asset is checked.
A sprite sheet is one picture containing many frames. The importer needs to know how to cut that picture into equal cells and how fast to play them.
The practice Signal_Lamp_Sheet.png is 256 pixels wide and 128 pixels high. It has four columns, two rows and 64-by-64 cells. Seven cells contain a lamp frame; the last cell is deliberately empty.
The seven-frame lesson#
1. Add an asset with ID guide_sheet, Name Signal Lamp Sheet, and Kind spritesheet.
2. Browse for Signal_Lamp_Sheet.png.
3. Choose Grid (Rows/Columns) in Split Method.
4. Set Columns to 4 and Rows to 2.
5. Set Last Row Count to 3. That keeps three frames from the final row instead of including the empty eighth cell.
6. Set the upper Animation FPS to 8.
7. Apply Asset Changes. The preview should report 7 frames.
8. Save Project.
