lukasS

Hey everybody,

my graphic designer and I looked for a tool to make some fancy animations. So we found Spine and yeah, we are totally delighted.

Now for the question: To conserve expensive texture loads we want to pack all images of the game into one png file. so within the png file there are several animation-images. how can we describe the animations with one json file to create several skeleton objects. I just render one skeleton, which holds all animations. (all animations in each screen).
Or should we use more json files?

sorry for mistakes in the spelling (I'm not a native English speaker).


Thanks a lot :)
lukasS
  • Mensajes: 13

Pharan

Many different skeletons can share one atlas. You can export many different jsons, and make them use one png and one atlas. It's not a problem. Nothing in the json specifies which atlas it gets images and parts from, so it could be from any valid atlas.

Use Spine's Texture Packer if you need to. The relationship between the atlas and the json are determined in code.
Avatar de Usuario
Pharan
  • Mensajes: 5366

lukasS

thanks for the quick answer and for the positive prospects. At the moment we get for each skeleton one triple of png,atlas and json files. Which settings do I have to change to get only one png/atlas and several jsons?
lukasS
  • Mensajes: 13

Pharan

No settings. Just export the jsons.
Then collect all your images into a folder and use Spine's Texture Packer to pack the shared atlas separately.

Note that this won't work very well if your images in different skeletons have the same names. You'll have to rename them or move them into different folders so they have folder paths when packed in the atlas.
Avatar de Usuario
Pharan
  • Mensajes: 5366


Volver a Off-topic