Hi folks,
I’ve been struggling with this for a while now and just can’t work it out. I’ve created a image sheet
local options =
{
frames =
{
{
x = 2,
y = 70,
width = 100,
height = 100
},
{
x = 2,
y = 242,
width = 100,
height = 100
},
},
sheetContentWidth = 512,
sheetContentHeight = 512
}
local imageSheet = graphics.newImageSheet( "test.png", options );
Then I try to create a display image using that image sheet like so
local myImage = display.newImage( imageSheet , 1)
It fails with a ‘Failed to find image(1)’ error. I can’t work out what’s going on. Creating a sprite using display.newSprite and some random sequence data works fine, but display.newImage( imageSheet , index) refuses to work.
Any help would be greatly appreciated!
Thanks,
Lisa
[import]uid: 168400 topic_id: 35925 reply_id: 335925[/import]