Flashing sprite effect in html5



  • In other targets, I would use a sprite's blend mode to achieve a white flash effect on a sprite, such as:

    highlight = new FlxSprite(0, 0, "assets/images/sprite.png");
    highlight.blend = BlendMode.ADD;
    

    But this doesn't seem to work in html5. The closest thing I've found is this demo with GLSL shaders, but I've not been able to get the desired effect from it; I'm not even sure if it's possible since the demo seems to apply the blend modes to the camera.

    Using flixel 4.4.2 and openfl 8.3.0. Any help is much appreciated, thanks.


Log in to reply
 

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.