Hello World,
I started learning Corona yesterday and I am very noob here so please go easy on me!
I have a problem with animating a sprite sheet the animation works, but the animation speed is very very fast and I don’t know why it’s fast like this.
Can you please tell me what went wrong?
I am using the jungle-cat example and here’s my code:
local centerX = display.contentCenterX local centerY = display.contentCenterY local options = { width = 512, height = 256, numFrames = 8, sheetContentWidth = 2048, sheetContentHeight = 512 } local mySheet = graphics.newImageSheet("sprites-cat-running.png", options); local sequenceData = { {name = "normalRun", start = 1, count = 8, loopCount = 800}} local animation = display.newSprite(mySheet, sequenceData) animation.x = centerX animation.y = centerY animation:setSequence("normalRun") animation:play() animation = nil