Hello Guest

Author Topic: Adding color to an animated sprite  (Read 4495 times)

stiv

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
    • View Profile
Adding color to an animated sprite
« 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

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Adding color to an animated sprite
« Reply #1 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...

stiv

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Adding color to an animated sprite
« Reply #2 on: August 14, 2015, 05:12:42 am »
Thanks, I hadn't tried that shader, could be useful. Cheers.