Wow, thanks for the fast reply!
I have tried various scaling with same results.
All sprites are same size. I have tried exporting from texture packer with and without “trim” being used. I am not allowing “free sizes” in Texture Packer.
No physics being used.
I’ll paste the lua file below, but I’m not sure how Corona uses this. The animation plays back without it in the project directory. Is there some code I need to add to reference it?
I’ll give SpriteGrabber a try.
Thanks!
lua code for sprite sheet:
[code]
function getSpriteSheetData()
local sheet = {
frames = {
{
name = “moon-spin_00000.png”,
spriteColorRect = { x = 5, y = 4, width = 246, height = 248 },
textureRect = { x = 1720, y = 1732, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00001.png”,
spriteColorRect = { x = 5, y = 4, width = 246, height = 248 },
textureRect = { x = 1474, y = 1732, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00002.png”,
spriteColorRect = { x = 4, y = 4, width = 248, height = 248 },
textureRect = { x = 1476, y = 1484, width = 248, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00003.png”,
spriteColorRect = { x = 5, y = 4, width = 246, height = 248 },
textureRect = { x = 1228, y = 1732, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00004.png”,
spriteColorRect = { x = 6, y = 3, width = 246, height = 248 },
textureRect = { x = 982, y = 1730, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00005.png”,
spriteColorRect = { x = 6, y = 3, width = 246, height = 248 },
textureRect = { x = 736, y = 1730, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00006.png”,
spriteColorRect = { x = 6, y = 4, width = 246, height = 248 },
textureRect = { x = 490, y = 1730, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00007.png”,
spriteColorRect = { x = 7, y = 4, width = 244, height = 248 },
textureRect = { x = 246, y = 1728, width = 244, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00008.png”,
spriteColorRect = { x = 5, y = 4, width = 248, height = 248 },
textureRect = { x = 1228, y = 1484, width = 248, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00009.png”,
spriteColorRect = { x = 5, y = 4, width = 248, height = 248 },
textureRect = { x = 1480, y = 1236, width = 248, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00010.png”,
spriteColorRect = { x = 6, y = 4, width = 246, height = 248 },
textureRect = { x = 0, y = 1728, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00011.png”,
spriteColorRect = { x = 5, y = 4, width = 246, height = 248 },
textureRect = { x = 1724, y = 1484, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00012.png”,
spriteColorRect = { x = 5, y = 4, width = 246, height = 248 },
textureRect = { x = 982, y = 1482, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00013.png”,
spriteColorRect = { x = 6, y = 4, width = 244, height = 248 },
textureRect = { x = 0, y = 1480, width = 244, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00014.png”,
spriteColorRect = { x = 5, y = 5, width = 246, height = 246 },
textureRect = { x = 980, y = 492, width = 246, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00015.png”,
spriteColorRect = { x = 5, y = 5, width = 246, height = 246 },
textureRect = { x = 246, y = 490, width = 246, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00016.png”,
spriteColorRect = { x = 5, y = 4, width = 246, height = 248 },
textureRect = { x = 736, y = 1482, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00017.png”,
spriteColorRect = { x = 5, y = 4, width = 246, height = 248 },
textureRect = { x = 490, y = 1482, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00018.png”,
spriteColorRect = { x = 6, y = 4, width = 246, height = 248 },
textureRect = { x = 244, y = 1480, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00019.png”,
spriteColorRect = { x = 7, y = 4, width = 246, height = 248 },
textureRect = { x = 1728, y = 1236, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00020.png”,
spriteColorRect = { x = 6, y = 4, width = 248, height = 248 },
textureRect = { x = 494, y = 1234, width = 248, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00021.png”,
spriteColorRect = { x = 5, y = 3, width = 248, height = 248 },
textureRect = { x = 246, y = 1232, width = 248, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00022.png”,
spriteColorRect = { x = 7, y = 3, width = 246, height = 248 },
textureRect = { x = 1234, y = 1236, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00023.png”,
spriteColorRect = { x = 6, y = 3, width = 246, height = 248 },
textureRect = { x = 988, y = 1234, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00024.png”,
spriteColorRect = { x = 5, y = 4, width = 248, height = 246 },
textureRect = { x = 248, y = 244, width = 248, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00025.png”,
spriteColorRect = { x = 6, y = 4, width = 248, height = 246 },
textureRect = { x = 0, y = 244, width = 248, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00026.png”,
spriteColorRect = { x = 6, y = 4, width = 248, height = 246 },
textureRect = { x = 1728, y = 0, width = 248, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00027.png”,
spriteColorRect = { x = 6, y = 6, width = 248, height = 244 },
textureRect = { x = 0, y = 0, width = 248, height = 244 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00028.png”,
spriteColorRect = { x = 5, y = 4, width = 248, height = 246 },
textureRect = { x = 1480, y = 0, width = 248, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00029.png”,
spriteColorRect = { x = 5, y = 5, width = 248, height = 246 },
textureRect = { x = 1232, y = 0, width = 248, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00030.png”,
spriteColorRect = { x = 6, y = 5, width = 246, height = 246 },
textureRect = { x = 0, y = 490, width = 246, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00031.png”,
spriteColorRect = { x = 6, y = 4, width = 246, height = 248 },
textureRect = { x = 742, y = 1234, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00032.png”,
spriteColorRect = { x = 5, y = 4, width = 248, height = 248 },
textureRect = { x = 0, y = 984, width = 248, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00033.png”,
spriteColorRect = { x = 7, y = 4, width = 246, height = 248 },
textureRect = { x = 0, y = 1232, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00034.png”,
spriteColorRect = { x = 8, y = 4, width = 244, height = 248 },
textureRect = { x = 986, y = 986, width = 244, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00035.png”,
spriteColorRect = { x = 7, y = 4, width = 246, height = 248 },
textureRect = { x = 1722, y = 988, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00036.png”,
spriteColorRect = { x = 7, y = 4, width = 246, height = 248 },
textureRect = { x = 1476, y = 988, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00037.png”,
spriteColorRect = { x = 7, y = 5, width = 246, height = 246 },
textureRect = { x = 1724, y = 246, width = 246, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00038.png”,
spriteColorRect = { x = 8, y = 5, width = 246, height = 246 },
textureRect = { x = 1478, y = 246, width = 246, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00039.png”,
spriteColorRect = { x = 7, y = 4, width = 246, height = 246 },
textureRect = { x = 1232, y = 246, width = 246, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00040.png”,
spriteColorRect = { x = 7, y = 5, width = 246, height = 244 },
textureRect = { x = 494, y = 0, width = 246, height = 244 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00041.png”,
spriteColorRect = { x = 6, y = 3, width = 246, height = 246 },
textureRect = { x = 986, y = 246, width = 246, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00042.png”,
spriteColorRect = { x = 6, y = 5, width = 246, height = 244 },
textureRect = { x = 248, y = 0, width = 246, height = 244 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00043.png”,
spriteColorRect = { x = 7, y = 4, width = 244, height = 246 },
textureRect = { x = 1470, y = 492, width = 244, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00044.png”,
spriteColorRect = { x = 6, y = 5, width = 246, height = 246 },
textureRect = { x = 740, y = 246, width = 246, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00045.png”,
spriteColorRect = { x = 6, y = 5, width = 246, height = 246 },
textureRect = { x = 986, y = 0, width = 246, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00046.png”,
spriteColorRect = { x = 6, y = 4, width = 246, height = 248 },
textureRect = { x = 1230, y = 986, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00047.png”,
spriteColorRect = { x = 6, y = 4, width = 246, height = 248 },
textureRect = { x = 740, y = 986, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00048.png”,
spriteColorRect = { x = 5, y = 4, width = 248, height = 248 },
textureRect = { x = 1722, y = 740, width = 248, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00049.png”,
spriteColorRect = { x = 5, y = 4, width = 248, height = 248 },
textureRect = { x = 246, y = 736, width = 248, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00050.png”,
spriteColorRect = { x = 6, y = 3, width = 246, height = 248 },
textureRect = { x = 494, y = 986, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00051.png”,
spriteColorRect = { x = 7, y = 3, width = 246, height = 248 },
textureRect = { x = 248, y = 984, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00052.png”,
spriteColorRect = { x = 8, y = 4, width = 244, height = 246 },
textureRect = { x = 1226, y = 492, width = 244, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00053.png”,
spriteColorRect = { x = 8, y = 4, width = 244, height = 246 },
textureRect = { x = 736, y = 492, width = 244, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00054.png”,
spriteColorRect = { x = 7, y = 4, width = 246, height = 246 },
textureRect = { x = 740, y = 0, width = 246, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00055.png”,
spriteColorRect = { x = 8, y = 4, width = 244, height = 246 },
textureRect = { x = 492, y = 490, width = 244, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00056.png”,
spriteColorRect = { x = 8, y = 4, width = 244, height = 246 },
textureRect = { x = 496, y = 244, width = 244, height = 246 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00057.png”,
spriteColorRect = { x = 7, y = 3, width = 244, height = 248 },
textureRect = { x = 1478, y = 740, width = 244, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00058.png”,
spriteColorRect = { x = 5, y = 3, width = 246, height = 248 },
textureRect = { x = 1232, y = 738, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00059.png”,
spriteColorRect = { x = 5, y = 4, width = 246, height = 248 },
textureRect = { x = 986, y = 738, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00060.png”,
spriteColorRect = { x = 5, y = 4, width = 246, height = 248 },
textureRect = { x = 740, y = 738, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00061.png”,
spriteColorRect = { x = 5, y = 4, width = 246, height = 248 },
textureRect = { x = 494, y = 738, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00062.png”,
spriteColorRect = { x = 5, y = 4, width = 246, height = 248 },
textureRect = { x = 0, y = 736, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
{
name = “moon-spin_00063.png”,
spriteColorRect = { x = 5, y = 4, width = 246, height = 248 },
textureRect = { x = 1714, y = 492, width = 246, height = 248 },
spriteSourceSize = { width = 256, height = 256 },
spriteTrimmed = true,
textureRotated = false
},
}
}
return sheet
end
[import]uid: 12948 topic_id: 8136 reply_id: 29019[/import]