Seamless Sprite Animations

How can I make a seamless sprite animation with two separate sprite sequences from the same sprite?
Even though they are from the same sheet, I get a noticeable flicker. [import]uid: 54716 topic_id: 21026 reply_id: 321026[/import]

Do you mean something like this?

  
local sheetPlayer = sprite.newSpriteSheet( "Media/Images/heroSheet.png", 123,126);   
 local spriteSetPlayer = sprite.newSpriteSet(sheetPlayer, 1, 10);  
 sprite.add( spriteSetPlayer, "pState2", 1, 2, 200, 0 );   
 sprite.add( spriteSetPlayer, "pState1", 3, 2, 200, 0 );   
 sprite.add( spriteSetPlayer, "pState0", 5, 2, 200, 0 );   
 sprite.add( spriteSetPlayer, "hit", 7, 4, 500, 0 );   
 plane = sprite.newSprite( spriteSetPlayer );   

Then to select which sequence, I just cycle using

plane:prepare("pState2");   
plane:play();  

for example. [import]uid: 116225 topic_id: 21026 reply_id: 83038[/import]

Thats what I am doing now…like that’s what makes sense and as obviously others think should work, but of course doesn’t. [import]uid: 54716 topic_id: 21026 reply_id: 83046[/import]

Try something like this

[code]
timer.performWithDelay( 33, function() anim:prepare( “idle” ); anim:play() end )
[import]uid: 84637 topic_id: 21026 reply_id: 83165[/import]

I’m sorry… I obviously… didn’t understand your question then…

Danny looks like he might be onto something. [import]uid: 116225 topic_id: 21026 reply_id: 83240[/import]