Unfortunately I think I’ve found another problem with spritesheets. If, for example, you wish to have a spritesheet 1 frame high and n frames across, you’ll get assertions if the source image file is > 630 width. This may be related to bug 1808 I reported.
The assertion spuriously reports that frames don’t fit in sheet. The first error is for the height, even though this hasn’t changed. If you subtract 1 from this it gets through but still fails on the width test. For example, it reports an error for an image height of 40 pixels with a frame height of 40 when the image width is > 640. If you subtract 1 it’s OK. So it seems that Corona is shrinking the image dimensions internally.
The test code I’ve supplied shows this. Files 320x40 and 640x40 are OK but 960x40 and 1040x40 are not.
Project file here
[import]uid: 3953 topic_id: 1845 reply_id: 301845[/import]