

Open the spine-c group in your project navigator and delete everything except for include and src. Make sure that Create groups for any added folders is selected, that the SpineTest target is checked, and click Finish. At this point your directory should look like this:īack in Xcode, drag the spine-c and spine-spritekit folders from your project directory into your project. Next, copy the spine-runtimes\spine-c and spine-spritekit folders into your SpineTest directory. Name the project SpineTest, and save it to your Desktop. Feel free to poke around if you’d like – but when you’re ready to make your own Sprite Kit game using your elf animation, read on! Integrating Spine-SpriteKitĬreate a new project with the iOS\Application\SpriteKit Game template. This demo project shows off some of the sample animations that come with Spine. Build and run the project, and you should see something that looks like this: Next, open Spine-Spritekit-Demo\Spine-SpriteKit-Demo.xcodeproj.
Copy animation to skeleton spine2d update#
Update 2/18/14: Michael Redig has released an alternative Sprite Kit runtime that you might want to check out.

This project a dependency on the official spine runtime, so rather than downloading the project from github as a zip, it’s better to download it from the command line as follows: Good news for Sprite Kit fans – Sprite Kit has an (unofficial) Sprite Kit runtime, too.
Copy animation to skeleton spine2d code#
Spine comes with a huge list of runtimes for almost every game framework, that contains all of the code you need to parse and use Spine animations in your game.

You can use this tutorial just to get your feet wet with a working example for now. Warning: The Spine-SpriteKit runtime you are going to use in this tutorial is an unofficial runtime, and is likely to be replaced with an official runtime in the future (fingers crossed).Īfter taking a look at the unofficial runtime, I think there are some things it’s missing, so I wouldn’t really recommend using it unless you’re an experienced coder comfortable with hacking around, etc.įor less experienced coders, I’d recommend waiting for the official runtime for SpriteKit, or using a different (official) Spine runtime at this point.
