Flake 6 Report post Posted May 6, 2015 Hi, I'm attempting to get a spine animation running in Pixi:In the examples (http://www.goodboydigital.com/pixijs/examples/12-2/) a '.anim' file is loaded (along with a json). var assetsToLoader = ["data/dragonBones.json", "data/dragonBones.anim"];However I cant figure out how to export or convert my spine files into this format. (Currently I'm exporting a ".atlas", a ".json" and a ".png")Thanks. Quote Share this post Link to post Share on other sites
xerver 285 Report post Posted May 6, 2015 You should be using v3 of pixi and be looking at the v3 examples: https://github.com/pixijs/examples/blob/master/examples/spine/dragon.js What you linked are the deprecated v2 examples. Quote Share this post Link to post Share on other sites
Flake 6 Report post Posted May 7, 2015 Whoops.. Thanks, for the heads up! Edit: :/ sry to keep this thread open. The example is spread out over too many source files and languages for me to follow.. I just want to get the animation playing in a simple page. I've added pixi and pixi-spine in the header, but as soon as I add the later, I get the following error in line one of pixi-spine:Error: Cannot find module 'pixi.js'I'm new to JS, and not using any build tools.. Are there other libs that I have to add, or am I failing elsewhere. *All files and assets are in the same folder, btw. Edit, Edit: I downloaded the examples project, and get the same error when I run the Spine examples. (the others work fine) Quote Share this post Link to post Share on other sites
xerver 285 Report post Posted May 8, 2015 Looks like you are using a new version of pixi.js with an old version of pixi spine. Use their latest: https://github.com/pixijs/pixi-spine/tree/master/bin Quote Share this post Link to post Share on other sites
Flake 6 Report post Posted May 8, 2015 Works like a charm. Thanks for the help! Quote Share this post Link to post Share on other sites