maloneybw Posted April 29, 2015 Share Posted April 29, 2015 I'm in the process of upgrading a site that uses Spine animations to v3 of pixi (hoping this will fix some weird anomalies I've had in the past that I had to hack pretty hard to fix). I tried modifying my existing code with the new standards and got stuck at the following error: Uncaught TypeError: Cannot read property 'Spine' of undefined I even tried using the provided examples on github and I get the same error. Here's a snippet from one of the examples that shows where the code error is generated function onAssetsLoaded(loader,res){ // instantiate the spine animation dragon = new PIXI.spine.Spine(res.dragon.spineData); dragon.skeleton.setToSetupPose(); dragon.update(0); dragon.autoUpdate = false; The rest of the examples load fine on my site, but all of the Spine examples give this error. Quote Link to comment Share on other sites More sharing options...
fsrojas Posted April 30, 2015 Share Posted April 30, 2015 Try to add the pixi-spine library, you can find more info here -> https://github.com/pixijs/pixi-spine Quote Link to comment Share on other sites More sharing options...
xerver Posted May 1, 2015 Share Posted May 1, 2015 Spine no longer ships with PIXI, you need the plugin if you want to use spine stuffs. 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.