Original message (verbatim)
SpriteSheet frame dimensions will result in zero frames for texture:
Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.
Trigger
When loading a full sprite sheet via this.load.spritesheet(), the configured frameWidth/frameHeight are larger than the actual image dimensions, or after margin/spacing are deducted the computed rows and columns count to zero; generateFrameNumbers then receives an empty frame array. The texture.key is appended after the colon as the second argument in the source.
Typical cause
The parser computes rows and columns separately from floor((width-margin+spacing)/(frameWidth+spacing)) and the height axis; when the product total is zero, no frame is added to the Texture.
Step-by-step fix
- Check that the sprite sheet's actual pixel size matches frameWidth/frameHeight, and set margin and spacing correctly.
- Confirm the image has fully downloaded and is not cropped before generating animation frames in the create phase.
Source links
- https://raw.githubusercontent.com/photonstorm/phaser/master/src/textures/parsers/SpriteSheet.js
- https://stackoverflow.com/questions/68921391
Per-entry sources and capture date are listed at /sources#P01.
Related errors
Related Phaser errors
Need an offline quick-reference checklist?
Atlas error library Pro pack: 123 error references (110 single + 13 merged) plus a quick-fix guide, $19 one-time purchase, delivered as electronic files.
Back to the all-errors index Checkout and buy the Pro pack — $19.00