lars Posted June 10, 2019 Share Posted June 10, 2019 Hey Im trying to catch a spine timeline event in pixi: this.myMille.state.setAnimation(0, "BB-react-benzin-smallCar", false); this.myMille.state.onEvent = function(i, event) { console.log(event); if (event.name == "pickup"){ console.log('pickup'); } }; But it´s does not seems to work. Any ideas? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 10, 2019 Share Posted June 10, 2019 where did you get "pixi-spine.js", and whats version of your spine editor? Quote Link to comment Share on other sites More sharing options...
lars Posted June 10, 2019 Author Share Posted June 10, 2019 Im using spine version 3.7.94 an pixi-spine is from: https://github.com/pixijs/pixi-spine Im using it with ES6 and Node.js Quote Link to comment Share on other sites More sharing options...
jonforum Posted June 10, 2019 Share Posted June 10, 2019 spine.state.addListener({ event: checkEvent, }); Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 10, 2019 Share Posted June 10, 2019 Interesting. There's old deprecated `onEvent` thing, yes, maybe I broke it in new version I'll check it later, try the workaround @jonforum suggested for now! 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.