2D Toolkit Forum

2D Toolkit => Support => Topic started by: stiv on August 13, 2015, 12:58:06 am

Title: Adding color to an animated sprite
Post by: stiv on August 13, 2015, 12:58:06 am
Hi,

I have a bunch of animated enemy sprites that I'd like to flash white when they get hit. Obviously using the color property on sprite only tints the sprite so you can't make it brighter than it already is.

I was just wonder if there is a simple way make a sprite flash white without needing to create a separate set of pure white sprites to overlay on top? (I'm guessing no but thought I should ask first!)

Cheers,
Steve
Title: Re: Adding color to an animated sprite
Post by: unikronsoftware on August 13, 2015, 09:59:08 am
No, but if you want that you can use the Blend / Additive shader (http://2dtoolkit.com/forum/index.php/topic,4867.msg23635.html#msg23635)
You'll lose the ability to tint the sprite, but colour changes now make the sprite brighter instead of darker...
Title: Re: Adding color to an animated sprite
Post by: stiv on August 14, 2015, 05:12:42 am
Thanks, I hadn't tried that shader, could be useful. Cheers.