Sprite animation, empty frame at end of cycle [project file attached]

I have a sprite sheet and associated .lua file that was created with TexturePacker that contains 2 animations - walkLeft and walkRight, each with 3 animation frames.

walkLeft plays perfectly, but walkRight always plays back with an empty frame at the end. I mean that the 3 animation frames play and then a 4th empty frame plays so that it looks like the spite vanishes for a moment before the cycle starts over.

You can download the project from here to see what I mean: http://dl.dropbox.com/u/3302748/spritebug.zip

This project is using SpriteGrabber, but I’ve tried playback using the Corona API as well and have the exact same problem. I also tried exporting the sprite sheet and .lua file from Zwoptex and had the same issue.

So it’s either something I’m doing wrong or some issue with the engine? I’m running Build: 2011.268 (I don’t have a subscription yet) [import]uid: 48658 topic_id: 8407 reply_id: 308407[/import]

Cancel that, I figured out the problem. I was assuming that in the following…

[lua]local player = playerSprites:grabSprite(“player”,true, {walkLeft = {1,3,100,0}}[/lua]

… that the first number was the first frame of the animation (which it is) and that the second number is the last frame of the animation (which it is NOT). The second number is actually the number of frames in the animation. [import]uid: 48658 topic_id: 8407 reply_id: 30201[/import]