Hey so my app has run smoothly up until now and I haven’t touched the spritesheets in over a month. It freezes when I hit the play button but ONLY on the device NOT the simulator. So I ran Logcat and this is the Runtime Error that I got:
I/Corona ( 1944): Lua Runtime Error: lua_pcall failed with status: 2, error message is: ERROR: Invalid parameter passed to sprite.newSpriteSheetFromData(). Frame overlaps sprite sheet.
This is my spritesheet code:
local sheet1 = sprite.newSpriteSheet( "catWalking.png", 52, 109 )
local spriteSet1 = sprite.newSpriteSet(sheet1, 1, 1)
sprite.add( spriteSet1, "cat", 1, 8, 700, 0 ) -- play 8 frames every 1000 ms
local instance1 = sprite.newSprite( spriteSet1 )
instance1.x = 0 --display.contentWidth / 4 + 40
instance1.y = 0 --75
instance1:prepare("cat")
instance1:play()
and my spritesheet image is 512 x 512.
Does anyone know why this freeze might happen??? [import]uid: 14461 topic_id: 20019 reply_id: 320019[/import]
[import]uid: 52491 topic_id: 20019 reply_id: 78248[/import]
[import]uid: 14461 topic_id: 20019 reply_id: 78357[/import]