making lists for animation

Hi all,

is there a way of condensing an numbered array, for example {001.png, 002.png, 003.png,…}, or do I have to type out all of the numbers manually, can I for example use {001.png to 002.png}

Thanks
Chris [import]uid: 7388 topic_id: 5761 reply_id: 305761[/import]

You can usually condense repeated code using loops, but it depends what exactly you are trying to do. In that specific case for example, you can build strings dynamically by doing something like:

local table = {} for i = 1, 5 do table[i] = "00"..i..".png" end [import]uid: 12108 topic_id: 5761 reply_id: 19749[/import]