mujik99 Posted December 14, 2017 Share Posted December 14, 2017 i have this picture I want the clickable area to be on the building itself and not on empty areas of the picture. P.s. sorry for my english. Link to comment Share on other sites More sharing options...
XekeDeath Posted December 15, 2017 Share Posted December 15, 2017 You want this property on the images input handler:http://phaser.io/docs/2.6.2/Phaser.InputHandler.html#pixelPerfectClick Setting that to true will only register clicks that are over areas of the image that have an alpha value on and above the pixelPerfectAlpha threshold. http://phaser.io/docs/2.6.2/Phaser.InputHandler.html#pixelPerfectAlpha Link to comment Share on other sites More sharing options...
Recommended Posts