Are uneven timings possible on sprite animations?

I’m starting to play with Corona and am wondering if the sprite class supports sprites with different timing for each frame of an animation.

I’ve got a little run cycle I threw together; most of the individual drawings are shown for two frames in a row, but the first and fourth are only shown for one frame. (Or, to put it the way Corona tends to think rather than the way an animator tends to think, I have two frames I want to show for 33ms, and six frames I want to show for 66ms.)

Right now I’ve got it hacked into the horse animation demo, and changed the timing by cutting and pasting some stuff in the lua file Zwoptex generated for me, but that really feels like I’m repeating myself more than I need to. Plus I worry that I might be wasting a bunch of memory by making twice as many copies of those frames as I need to somewhere… [import]uid: 66150 topic_id: 10818 reply_id: 310818[/import]

You are indeed wasting memory…

What you need to use is sprite.newSpriteMultiSet() function

http://developer.anscamobile.com/reference/index/spritenewspritemultiset [import]uid: 48521 topic_id: 10818 reply_id: 39574[/import]