puffsmalli Posted November 26, 2015 Share Posted November 26, 2015 In many forums and blogs pixi seems to have interactive sprites http://www.goodboydigital.com/pixi-js-now-even-better-at-being-interactive/ http://www.goodboydigital.com/pixi-js-gets-interactive/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.htmlAnd 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 ? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted November 26, 2015 Share Posted November 26, 2015 http://pixijs.github.io/examples/index.html?s=demos&f=interactivity.js&title=Interactivity 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.