Sprite API Major Bug?

Hey everyone,

First of all, I’m still using the old sprite API (waiting for TexturePacker to support the new one). I’m having a problem with large sprite sheets (more than 10 frames). I export the png and lua file and import them into my project. When I try to play the sprite, the order of the frames is all messed up. I even tried with Zwoptex and the same thing still happens. I am not using the new API at all, so this is all with the old one. Any idea why this would be happening? It works perfectly for all my other shorter sprite animations. This bug only happens with the larger ones.

Side note: Anybody know how to get TexturePacker to work with the new sprite API (OS X)?

Thanks! :slight_smile: [import]uid: 51654 topic_id: 24534 reply_id: 324534[/import]

Hey Naveen, what build of Corona are you currently using?

Peach :slight_smile: [import]uid: 52491 topic_id: 24534 reply_id: 99349[/import]

This problem is due to the way texture packer and such use the sorting algorithms.

To get around it, name your images 001.png, 002.png and so on. The 3 digits are important.
A app called “NameMangler” can do this as a batch process for you. Or you can do it manually. [import]uid: 84637 topic_id: 24534 reply_id: 99538[/import]

Thanks so much Danny. This was the issue all along. I think it would be really helpful if you included this info on the sprite API page too. I’m sure there will be other people that get confused about this. [import]uid: 51654 topic_id: 24534 reply_id: 99555[/import]