Jump to content

How to make a clickable area of ​​the image on the image borders.


mujik99
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

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