Skip to reading
The Asset Importer

Frame count and duration

Edition 0.86.3.4

Import and check models, images, animation, audio, fonts, video and shaders, with hands-on practice files.

Download PDFView illustrations

15. Sprite sheets, from picture to frames

Figure 33. The same sheet sliced by 64-by-64 cell dimensions instead of a row/column count.

Both methods use whole-pixel cells. In Grid mode, cell dimensions are calculated from the picture and counts; in Frame Size mode, incomplete cells at the far edge do not become full frames. Prepare a sheet that divides cleanly.

There are no margin, gutter or arbitrary-rectangle slicing controls in this form. A sheet with spacing between cells should be repacked without that spacing, or exported as separate frame images.

For this example, the first row contributes 4 frames and the last contributes 3: 7 total. At 8 FPS, one full pass lasts 7 divided by 8, or 0.875 seconds. The preview's enlarged display does not change those source cell dimensions.

Check your work. Pause the sequence, step through all seven frames and confirm that the empty final cell never appears. If it does, check Last Row Count before changing the artwork.

Page 48 of 86Permalink
Go to page