I think this is a problem with Corona SDK…
I have a small sprite sheet to animate the weapon of my character.
It contains 3 sprites.
In animation data I have specified start = 2 and count = 2.
This means that when I play that sequence, sprite 2 and 3 are gonna be played.
Works.
Now if I try to detect currently showing frame of the sequence (using object.frame), it won’t detect the 3rd sprite.
If I try to setFrame to 3, the terminal will say that the sequence doesn’t have 3 sprites.
But if I specify count = 3 , the terminal will say that it’s outside of the sprite sheet, however the 3rd sprite will get detected!
It’s not a big deal for this small sprite sheet, however the sprite sheet to animate the body of my character has 30 sprites, and more sequences. It’s giving me problems there.
This is probably a problem with Corona.