I’ve created an image sheet using TexturePacker. The images are trimmed (rectangles and other shapes) in TexturePacker but are technically 64x64. I want the untrimmed images to be square because they are being used as tiles. The problem is when I call
local image = display.newImageRect(displayGroup, imageSheet, frame, 100, 100)
I get a stretched out image instead of the well proportioned square that I designed. Here is a sample of my sheetinfo.lua
local SheetInfo = {} SheetInfo.sheet = { frames = { { -- image\_1 x=44, y=0, width=64, height=45, sourceX = 0, sourceY = 11, sourceWidth = 64, sourceHeight = 64 }, --etc --etc }, sheetContentWidth = 164, sheetContentHeight = 224 }
Has anyone else experienced this? I could do a workaround to get the image’s actual width and height and scale as necessary to keep proportions but that just defeats the purpose of designing everything to fit in a neat square. This would also introduce rounding errors and images that are supposed to line up seamlessly might have gaps.
