I am trying to dynamically create spritesheets on the fly in order to change the appearance of my characters (hair, clothes, etc). To do this I am adding multiple sheets in layers to a group, and then creating the sprite using the cached sprite texture from the group (bitmap, which I can convert to sprite) and so far that part is working great.
The trouble is, I’m having difficulty figuring out how to convert either bitmapdata or a sprite into a spritesheet. Using game.load.spritesheet only allows the spritesheet to be added as a URL.
Does anyone know of a way to convert either bitmapdata or sprite to a spritesheet?
Any help or thoughts would be greatly appreciated!!