Jump to content

(FIXED) InteractionManager Error (pointerType)


Jonny Shaw
 Share

Recommended Posts

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)

error.png

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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?

:o Looks like I didn't!  Sorry about that again.  Have replaced with the latest and that has fixed it for me, many thanks again!  

Link to comment
Share on other sites

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 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...