YJHyburdzMC Posted May 11, 2019 Share Posted May 11, 2019 Hi, I was trying to understand how to use Pixi-spine library that adds support for spine animations for PixiJS . But I did not find anything useful on the internet. Can anyone help me understand it? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 12, 2019 Share Posted May 12, 2019 https://github.com/pixijs/pixi-spine just take "pixi-spine.js" from "bin" folder, save to your project and put it in your html after "<script src="pixi.js">" then copy output of spine (json atlas png) somewhere and use the same code as in https://github.com/pixijs/pixi-spine As for all other features, please look up spine forums and http://esotericsoftware.com/spine-runtime-terminology , all things that are allowed in other spine runtimes (non-pixi) should work here too. Quote Link to comment Share on other sites More sharing options...
YJHyburdzMC Posted May 17, 2019 Author Share Posted May 17, 2019 On 5/12/2019 at 8:11 PM, ivan.popelyshev said: https://github.com/pixijs/pixi-spine just take "pixi-spine.js" from "bin" folder, save to your project and put it in your html after "<script src="pixi.js">" then copy output of spine (json atlas png) somewhere and use the same code as in https://github.com/pixijs/pixi-spine As for all other features, please look up spine forums and http://esotericsoftware.com/spine-runtime-terminology , all things that are allowed in other spine runtimes (non-pixi) should work here too. I did try to understand it but I didn't really get it and what I am trying to do is to play different animation on a keyboard button press example : w = walk forward animation , s = walk backward animation, etc.. I can play animation in one direction and this is without the pixi-spine.js Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 17, 2019 Share Posted May 17, 2019 There's that thing like "TRACK" . You have to pass track number and decide whether you ADD animation just after current one will end ( no end for looping) or SET it. I advice you to read esotericSoftware forums and look up their examples. Animation is the same here and in other engines that support spine. 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.