You will need to overwrite the skeleton:createImage() function. This function takes the attachment that it needs the image for as an argument and you can use the attachments “name” field to find an image in your imageSheet.
Here is the workflow we use:
Use image.png to set up spine character.
Export spine json
Use Texture Packer to export imageSheets of character images. (Make sure they are in the same folders as they are in the spine project.*)
Use imageSheet in the skeletons createImage function to return an image.
* The attachment.name is the path it has in the spine project under “images” I think.
I don’t have easy access to my work right now so some of this might be a little off. I hope it helps some at least.
You will need to overwrite the skeleton:createImage() function. This function takes the attachment that it needs the image for as an argument and you can use the attachments “name” field to find an image in your imageSheet.
Here is the workflow we use:
Use image.png to set up spine character.
Export spine json
Use Texture Packer to export imageSheets of character images. (Make sure they are in the same folders as they are in the spine project.*)
Use imageSheet in the skeletons createImage function to return an image.
* The attachment.name is the path it has in the spine project under “images” I think.
I don’t have easy access to my work right now so some of this might be a little off. I hope it helps some at least.