I have created a one frame sprite from an image that used to have a lot of empty space in it. Using trimming the data for the frame looks like this:
{
name = "header.png",
spriteColorRect = { x = 212, y = 0, width = 372, height = 83 },
textureRect = { x = 551, y = 388, width = 372, height = 83 },
spriteSourceSize = { width = 800, height = 83 },
spriteTrimmed = true,
textureRotated = false
}
Instead of the frame drawing in the middle of the screen as I had hoped, with the trimmed space added back in, it draws on the left side with the alpha still trimmed off.
How do i ensure that a trimmed sprite has the trimmed portions added back on?
Thanks,
Nathan
[import]uid: 100558 topic_id: 18891 reply_id: 318891[/import]