Change opacity of certain color of Phaser.Sprite

Viewed 2762

I have a sprite sheet where black pixels stand for transperency. So, when I load a sprite from this sheet, I don't want those pixels to be shown.

Therefore my question is the following: Is there an easy way to tell Phaser that opacity of a certain color of a sprite should be turned transparent?

1 Answers

If you need to do this just one time, then you could do it with the help of online tools like lunapic.com.

Upload your sprite, select a color you want to make transparent and thats it.

Related