eguneys Posted June 9, 2014 Share Posted June 9, 2014 I have spritesheets with a black background, is there a phaser way to extract the images transparently, or do i have to manually convert black to transparent. Link to comment Share on other sites More sharing options...
wayfinder Posted June 10, 2014 Share Posted June 10, 2014 You can use http://docs.phaser.io/Phaser.BitmapData.html#replaceRGB, I think Link to comment Share on other sites More sharing options...
lewster32 Posted June 10, 2014 Share Posted June 10, 2014 You should really supply the images as already transparent rather than processing them each time your game loads. Also depending on how the art is created, replacing black may not have the effect you desire (i.e. you may end up with bits replaced that shouldn't be, and black fringes on the edges of sprites) Link to comment Share on other sites More sharing options...
Recommended Posts