Jump to content

Where did the interactive sprites go to ?


Recommended Posts

In many forums and blogs pixi seems to have interactive sprites





mySprite.mouseupoutside = function(mouseData){   console.log("MOUSE UP OUTSIDE!");}mySprite.mousemove = function(mouseData){   console.log("MOUSE MOVE!");}mySprite.touchendoutside = function(touchData){   console.log("TOUCH END OUTSIDE");}mySprite.touchmove = function(touchData){   console.log("TOUCH MOVE");}

yet i see nothing about it in the documentation: https://pixijs.github.io/docs/PIXI.Sprite.html

And going over sprites in debugger return undefined for setInteractive, mouseDown, etc..


was this feature removed from PIXI ?

How should interactivity be implemented instead ?


I tried also setting event handler in  renderer.plugins.interaction.onMouseDown interaction manager but my handler was never called.

Should i create a new instance of InteractionManager ? 


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.

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.


  • Recently Browsing   0 members

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