• Editor
  • How to separate Characters and Equips on diferent sheets?

Hi.
I´m making a game where there will be multiple characters to use. Each one of them is a different Spine (they are no similar enough to make them a skin).
However, each one of them will have multiple skins using equipments, let´s say, a hat, and these equipments will be the same for all characters.

How can I make all these characters use their own sheet, but the hats all come from the same "hat sheet" so the same hat drawing doesn't have to be repeated on every character sheet?

P.S. Congratulations on the new Spine. Black tint, masking and the preview screen are AWESOME! :yes:

Thank you!

Related Discussions
...

I´ll try that. But I can see how that would make a Spine with one character create one sheet for the character and another sheet for the hats. The real question is, once I do that, how do I get a second spine, with a different character using his own sheet, and getting the hats from that same sheet as the oher one?

The texture packer will recognize if two images are the same and only pack one of them. See the Alias setting Texture Packing - Spine User Guide: Regions

If you place all your images in the same folder (with subfolders), you should be able to use the Texture Packer Ctrl+P to pack everything while making sure you don't place duplicate images in your atlases.

Nate or badlogic will probably be able to explain this better than me.

A texture atlas can have many pages. Each page is a separate texture. You could have a folder for each character's images, and another folder for hats. The result would be one (or more) pages for each character, and one (or more) pages for the hats. You'd pack a single atlas (ie don't check Create Atlas when you export the skeleton data, run the texture packer separately) and all the skeletons would use that single atlas, which contains multiple pages.