Sprite question but not quite sure how to ask

OK, I have a sprite sheet with 7 images on it.

I can play the images and such but had a question and don’t know how to technically verbalize what I am asking for but here goes.

Instead of the following code
local spriteSet = sprite.newSpriteSet(spriteSheet, 1, 5)

Is there a way to define a SpriteSet to cycle like the following.
Create a sprite set from a sprite sheet using the images in the following order (1,2,3,2,3,5,7,etc) and repeating some of the images?

Sorry for my lack of knowledge in this area and thanks for any help or suggestions.

[import]uid: 28709 topic_id: 14753 reply_id: 314753[/import]

Just place your images into the spritesheet in that order.
And with a tool like TexturePacker you can use alias for images that are used multiple times, so that only one copy of that image is included into the sprite sheet.

In your case 7 source frames (1,2,3,2,3,5,7) will result in a spritesheet that consists of only 5 images (1,2,3,5,7).

Or just use this function: http://developer.anscamobile.com/reference/index/spritenewspritemultiset [import]uid: 52103 topic_id: 14753 reply_id: 54589[/import]

Thanks, I used the following and it did what I needed.

local spriteSetMulti = sprite.newSpriteMultiSet(
{
{ sheet = spriteSheet, frames = { 1, 2, 3, 4, 5,2,1,3,5,4 } },
}) [import]uid: 28709 topic_id: 14753 reply_id: 54623[/import]