I have an image sheet.
I can display an image at a specific size like this;
display.newImageRect( sheetImage, sheetIndex, width, height )
width and height specify the size of image.
I want to do this with my sprite like this;
local sequenceData =
{
frames= { 1,2,3 },
time = 300,
loopCount = 0,
loopDirection = “bounce”
}
display.newSprite( sheetImage, sequenceData, width, height )
But I don’t see the width and height options on the newSprite function.
How do I do this?