Search the Community
Showing results for tags 'mouseevent'.
-
Hello Im trying to make my spine object interactive: var player = new game.Spine('mySpine.json'); //player.hitArea = new game.Rectangle(200, 500); player.position.set(300, 800); player.interactive = true; player.play('idle', true); //player.speed = 0.01 player.addTo(this.stage); player.click = function() { console.log('check clicked'); }; That did not work. I tried to put it in a container. That did not help either. It works OK an a sprite object.
-
Hello to all pixi fans I have a problem, when i reorder a DisplayObjectContainer's children array, the mouse events are not reordered (so it seems atleast). Here is the fiddle: http://jsfiddle.net/fela98/oer4828L/3/ The MouseEvents are not dispatched to the correct Sprites. Sometimes am I dragging a sprite that is behind the on I clicked. Am I supposed to reorder the children array manually or should i only do it with the swapChildren method? Am I doing something wrong or is this a bug? Thanks in advance!