• Editor
  • Exporting animation

  • Изменено
Related Discussions
...

This is a newbie question. I'm building a web game and need to use a json file to incorporate a character animated in Spine. If I just export a json file with atlas.txt and png, will that include the animation information to have it animate properly? Or is there an additional step needed? Do I need to export the skeletal information separately as well?

What are all the files needed to have all the animation and image included?

The data export from Spine includes all of the skeleton information: bones, slots, attachments, skins, animations, constraints, etc. You can open the JSON with a text editor and read the data (check Pretty print).

Note if you don't need to read the data, then you should export binary. It is smaller in size and faster to load.

You need the atlas file, PNG file(s), and skeleton data file to load and render your skeleton and animations. The fastest way to display your skeleton data on a webpage is the Spine web player. That displays a single skeleton. If you are building a game then you probably want to use a game toolkit, such as Phaser or Pixi.js.