There is a sprite on scene with alpha. All mouse events are invoked by whole sprite area, even transparent pixels. How can I to ignore transparent area?
Second way to resolve problem is an attaching shape to sprite? I have generate json for that spite by PhysicsEditor. How to attach that shape to sprite?
In Phaser 2 that problem may be solved by using that code (deprecated):
Thanks! Object { pixelPerfect: true, alphaTolerance: 1 } helped to solve the problem.
But other way with { hitArea: shape } does not work.
Is there a working example for shapes loaded from json? May be shape is invalid.