Here’s my code. I got it to work except not to my liking. I needed to loop once. I created a workaround to get to appear to loop once, bu the code did not consistently work. It would work, then I’d run it again (same code) and the sprite would keep showing a loop. I’ve trimmed the code below just to show the portion of getting the multisheet to work. I’m very much a noob at this so the code my not be the best structure-wise. The big series of 8s on the last one to simulate freezing on the last frame since I could figure out how to do that correctly.
[blockcode]
local localGroup = display.newGroup()
local play1 = sprite.newSpriteSheetFromData( “img_6a1.png”, require(“img_6a1”).getSpriteSheetData() )
local play2 = sprite.newSpriteSheetFromData( “img_6a2.png”, require(“img_6a2”).getSpriteSheetData() )
local play3 = sprite.newSpriteSheetFromData( “img_6a3.png”, require(“img_6a3”).getSpriteSheetData() )
local endFrame = sprite.newSpriteSheetFromData( “img_6a3.png”, require(“img_6a3”).getSpriteSheetData() )
local spriteSet2 = sprite.newSpriteMultiSet(
{
{ sheet = play1, frames = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 } },
{ sheet = play2, frames = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 } },
{ sheet = play3, frames = { 1, 2, 3, 4, 5, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8} }
}
)
local spriteSet = sprite.newSpriteMultiSet(
{
{ sheet = endFrame, frames = { 8 } }
}
)
local instance2 = sprite.newSprite(spriteSet2)
instance2.x = display.contentWidth / 2
instance2.y = display.contentHeight / 2
instance2:play(“animation”)
localGroup:insert(instance2)
[/blockcode]
[import]uid: 38758 topic_id: 9358 reply_id: 35334[/import]