I have lots of frame files of an animation.(241 frame Extracted from a gif file)
I want to burst into a sprite images I display.
I used a sample document named “Multiple Image Sheets” But it does not work.
I use the similar code, but it does not work. Please help me to write the correct code.
local sheet1 = graphics.newImageSheet( "birdseq/frame-001.png",{ width=460, height=135, numFrames=1}) local sheet2 = graphics.newImageSheet( "birdseq/frame-002.png",{ width=282, height=122, numFrames=1}) local sheet3 = graphics.newImageSheet( "birdseq/frame-003.png",{ width=270, height=121, numFrames=1}) local sheet4 = graphics.newImageSheet( "birdseq/frame-004.png",{ width=256, height=118, numFrames=1}) local sheet5 = graphics.newImageSheet( "birdseq/frame-005.png",{ width=242, height=116, numFrames=1}) local sheet6 = graphics.newImageSheet( "birdseq/frame-006.png",{ width=230, height=114, numFrames=1}) local sheet7 = graphics.newImageSheet( "birdseq/frame-007.png",{ width=217, height=114, numFrames=1}) local sheet8 = graphics.newImageSheet( "birdseq/frame-008.png",{ width=203, height=113, numFrames=1}) local sheet9 = graphics.newImageSheet( "birdseq/frame-009.png",{ width=192, height=113, numFrames=1}) local sheet10 = graphics.newImageSheet( "birdseq/frame-010.png",{ width=180, height=113, numFrames=1}) local sequenceData = { { name="seq1", sheet=sheet1, start=1, count=10, time=100, loopCount=0 ,loopDirection = "forward"}, { name="seq2", sheet=sheet2, start=2, count=10, time=100, loopCount=0 ,loopDirection = "forward"}, { name="seq3", sheet=sheet3, start=3, count=10, time=100, loopCount=0 ,loopDirection = "forward"}, { name="seq4", sheet=sheet4, start=4, count=10, time=100, loopCount=0 ,loopDirection = "forward"}, { name="seq5", sheet=sheet5, start=5, count=10, time=100, loopCount=0 ,loopDirection = "forward"}, { name="seq6", sheet=sheet6, start=6, count=10, time=100, loopCount=0 ,loopDirection = "forward"}, { name="seq7", sheet=sheet7, start=7, count=10, time=10, loopCount=0 ,loopDirection = "forward"}, { name="seq8", sheet=sheet8, start=8, count=10, time=100, loopCount=0 ,loopDirection = "forward"}, { name="seq9", sheet=sheet9, start=9, count=10, time=100, loopCount=0 ,loopDirection = "forward"}, { name="seq10", sheet=sheet10, start=10, count=10, time=100, loopCount=0 ,loopDirection = "forward"} } myAnimation = display.newSprite(sheet1 ,sequenceData ) myAnimation.x = display.contentWidth/2 ; myAnimation.y = display.contentHeight/2 myAnimation:play()