shohan4556 Posted January 23, 2016 Share Posted January 23, 2016 Hello, I want to add glow effect on a sprite, is there any fancy way to do it with or without Phaser. Thanks. Link to comment Share on other sites More sharing options...
megmut Posted January 23, 2016 Share Posted January 23, 2016 There is one of two ways you could achieve this. A: Create a white png the same shape as your sprite and add it as a child to the sprite. Make it a 1.1 scale, so it's slightly larger, change the alpha to 0.5 and use a tint on it to make it any colour you wish. B: use a bitmap copy image of the sprite, you'd use less memory this way, then perform the same manipulations to this. If I get five minutes today, I'll do a quick demo, but no promises. I'm pretty busy at the moment! Hope this helps shohan4556 1 Link to comment Share on other sites More sharing options...
shohan4556 Posted January 23, 2016 Author Share Posted January 23, 2016 19 minutes ago, megmut said: There is one of two ways you could achieve this. A: Create a white png the same shape as your sprite and add it as a child to the sprite. Make it a 1.1 scale, so it's slightly larger, change the alpha to 0.5 and use a tint on it to make it any colour you wish. B: use a bitmap copy image of the sprite, you'd use less memory this way, then perform the same manipulations to this. If I get five minutes today, I'll do a quick demo, but no promises. I'm pretty busy at the moment! Hope this helps Thanks for the reply I really appreciate your code, feel free to share when your are free Link to comment Share on other sites More sharing options...
Recommended Posts