phaserly Posted July 7, 2018 Share Posted July 7, 2018 Hi, When my player gets damage i want to create a mask of transparant red glow around the insideborders of the canvas but i can't find any examples for phaser3? Link to comment Share on other sites More sharing options...
prob Posted July 8, 2018 Share Posted July 8, 2018 The simplest route would be to create a PNG/SVG image of the damage effect, size it the canvas, and then tween the opacity/alpha of the object in and out. You could also look into using a graphics object (fillRect) with a gradient/alpha tint (although you may need four of them, to properly configure the tint/alphas), using lights, or applying a mask. Link to comment Share on other sites More sharing options...
Recommended Posts