swiftsprite-kitspine

How to integrate Spine animations to a SpriteKit game


I need to integrate animations to an iOS SpriteKit game. The artist provides them in Spine format. Such animation consists of a set of images, a .spine file describing the animations and a .json file describing the metadata.

I see two possible ways to solve this problem:

  1. Find (or make) a module allowing to add nodes and related animations from Spine files to a SpriteKit scene.
  2. Convert the animation to a different format which can be imported to SpriteKit easily.

Please, share your experience. Any help is welcomed!


Solution

  • There is a library that allows you to do exactly that. Installing & usage examples are in the description of the library.

    https://github.com/maxgribov/Spine