pixelPerfectAlpha and pixelPerfectOver are not working ?

Recommended Posts

Hi !

I'm trying to create simple clickable objects in phaser 3 but using the alpha channel to exclude part of the surface from being clickable. So far I've come up with this code : [PASTEBIN] which you can test in the phaser sandbox :

The problem is that the image turns red even when the mouse is over parts that have alpha channel, that shouldn't happen with that code : /


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.