Jonny Shaw Posted June 4, 2017 Share Posted June 4, 2017 Hi all, have continued working on my little game prototype. Nothing much there atm except an animated background (a few clouds moving, and a Spine based animated cactus). Ive just started dropping in some sprites for the HUD but getting an error from Interaction manager as soon as myButton.interactive=true and myButton.buttonMode = true are set. Cannot read property 'pointerType' of undefined at Interactionmanager.processPointerMove Any clues? Using 4.52 Production (non-min) Quote Link to comment Share on other sites More sharing options...
Jonny Shaw Posted June 5, 2017 Author Share Posted June 5, 2017 Have narrowed this one down. Believe it has something to do with pixi-display.js I have just added this script to another project with a couple of displayGroups and the same error occurs in that one too? Quote Link to comment Share on other sites More sharing options...
Jonny Shaw Posted June 5, 2017 Author Share Posted June 5, 2017 3 minutes ago, sHAYM4N said: Have narrowed this one down. Believe it has something to do with pixi-display.js I have just added this script to another project with a couple of displayGroups and the same error occurs in that one too? Sorry think I've found this issue already raised on pixi-display.js? https://github.com/pixijs/pixi-display/issues/13 Will see if I can get around without using DisplayGroups for the time being, unless anyone has any suggestions? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 5, 2017 Share Posted June 5, 2017 I thought i fixed it. Do you use latest pixi-display and pixi? Latest from github or latest from npm? UPDATE: my pixi-display has less than 600 lines. You sure you have latest? Jonny Shaw 1 Quote Link to comment Share on other sites More sharing options...
Jonny Shaw Posted June 5, 2017 Author Share Posted June 5, 2017 6 minutes ago, ivan.popelyshev said: I thought i fixed it. Do you use latest pixi-display and pixi? Latest from github or latest from npm? UPDATE: my pixi-display has less than 600 lines. You sure you have latest? Looks like I didn't! Sorry about that again. Have replaced with the latest and that has fixed it for me, many thanks again! ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 5, 2017 Share Posted June 5, 2017 Yeah, the problem is that every time InteractionManager updates, I have to update plugin too. Btw, look at this branch: https://github.com/pixijs/pixi-display/tree/layers , some people already using it instead of master. Its not 100% compatible, you have to understand the differences and how it works. There are pair of demos: http://pixijs.github.io/examples/#/layers/lighting.js Jonny Shaw 1 Quote Link to comment Share on other sites More sharing options...
Jonny Shaw Posted June 5, 2017 Author Share Posted June 5, 2017 3 minutes ago, ivan.popelyshev said: Yeah, the problem is that every time InteractionManager updates, I have to update plugin too. Btw, look at this branch: https://github.com/pixijs/pixi-display/tree/layers , some people already using it instead of master. Its not 100% compatible, you have to understand the differences and how it works. There are pair of demos: http://pixijs.github.io/examples/#/layers/lighting.js That's brilliant thanks! Will stick with what's working at the moment (Don't have a massive use of DisplayGroups atm) do you know if there are plans to incorporate DisplayGroups or something similar directly into Pixi with V5 maybe? ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 5, 2017 Share Posted June 5, 2017 I'll try to incorporate it, but it will be difficult battle in the core team Jonny Shaw 1 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.