It is what it is. I answered the thrust of the question.
You cannot write code in the way you wanted to. Corona does not have a mechanic that operates that way.
I believe however, that you can achieve your end goal for the behavior of the animation.
I can't answer specific questions about Texture Packer. Also, I don't use the multi-pack feature which makes me a bad person to ask.
This may sound dumb, but I'd focus less on the solution I want and focus more on the behavior I want.
re: the last paragraph, When you say 'sprite' do you mean texture/image? These terms get conflated and it makes these discussions a little hard to have.
Short-circuiting any side discussions about sprites, textures, and images.
1. I understand when you way sprite and I say image and someone else says texture we all mean the same thing in this context.
2. I understand that you are saying you may have the same image in two different sheets, and you want to avoid that.
3. I draw a distinction because Corona has an object called 'sprite' so I like to reserve the use of that word for the object. Thus I don't call images sprites, even if the intention is that they be used for an animation.
Edited by roaminggamer, 05 April 2019 - 08:19 PM.