Hello, I am having errors on doing animation by sprite table, does anyone have clues on resolving this problem?
local sheetRunnerData = { width=512, height=512, numFrames=34, sheetContentWidth=3072, sheetContentHeight=3072 } local sheetRunner = graphics.newImageSheet( "8bitrunneranimx512.png", sheetRunnerData ) local sheetRunnerSequence = { { name = "run", frames={ 1,2 }, time=250 }, { name = "death", start=3, count=32, time=250 } } local sheetRunnerAnim = display.newSprite( sheetRunner, sheetRunnerSequence ) sheetRunnerAnim.x = display.contentWidth/2 sheetRunnerAnim.y = display.contentHeight/2 sheetRunnerAnim:play("death")
It becomes:
And I’m using the sprite table that is 3072x3072 big.