gotcha... TiledID start counting at 0 and Sprite frames start counting at 1...

TiledID start counting at 0
Sprite frames start counting at 1
gid corresponds with tileID = gid - firstgid
while spriteframe = gid - firstgid + 1

Why did Lua ever decided to count from 1 - %$#^%&%*(&)

-FS. [import]uid: 8093 topic_id: 6812 reply_id: 306812[/import]

I think the debate of index vs offset based arrays will go on forever. [import]uid: 5833 topic_id: 6812 reply_id: 23786[/import]