Flake Posted May 6, 2015 Share 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 Link to comment Share on other sites More sharing options...
xerver Posted May 6, 2015 Share 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 Link to comment Share on other sites More sharing options...
Flake Posted May 7, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
xerver Posted May 8, 2015 Share 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 Link to comment Share on other sites More sharing options...
Flake Posted May 8, 2015 Author Share Posted May 8, 2015 Works like a charm. Thanks for the help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.