I want to be able to swap out certain elements on the fly with my main character, such as guns.
Id rather not have to create an entire set of sprite sheets for each weapon type so is there a way I can do this effectively in corona?
Ive thought of a couple of ways that might work. Overlay the sprite in a separate layer in photoshop so I can line the gun up just right in each frame, then export just that layer with the gun as a separate sprite sheet and play that on top of the player sprite. But my worry there is what if it got out of synch.
another idea is to just have one image file for the gun and dynamically rotate and translate its position relative to the player x,y position and rotation based on the current frame number.
So if in frame 2 the character is holding the gun slightly higher and at more of an upward angle I would just store that position in an array associated with frame 2 and adjust the gun image manually at each frame of the character sprite.
I have no idea if either of those ideas would work or if they would be the optimal way to do something like that in Corona. Anyone have any other ideas or experience with this? [import]uid: 128290 topic_id: 24489 reply_id: 324489[/import]