Swapping the Spritesheet Source

Hello Corona,

I’m working on a game that uses a spritesheet for character animation.
What i’d like to do is swap the source image of my spritesheet with another image.

Does anyone know if this is possible and how to do it? [import]uid: 59229 topic_id: 29557 reply_id: 329557[/import]

I believe you would need to dispose of and recreate the sheet. [import]uid: 52491 topic_id: 29557 reply_id: 118661[/import]

I was afraid of that.
Too bad, but it’s a perfectly doable solution :slight_smile: [import]uid: 59229 topic_id: 29557 reply_id: 118666[/import]

The only thing you’ll find is its a bit of a performance hit and you’ll will notice a bit of slowdown when this happens. I did find a post when somebody made use of Lua’s coroutines to handle this (similar to multi-threading, but not), but I couldn’t get it to work for what I needed.

Good luck. [import]uid: 33275 topic_id: 29557 reply_id: 118673[/import]