Hi,
I’m trying to find how to change the color of all pixels in a sprite created from an image sheet. See image attached, the right-side one is what I’m trying to do.
If I use:
sprite:setFillColor(1, 0, 0)
the sprite changes color, but the dark parts remain (pixel color is multiplied, middle sprite).
I tried a few different filter effects. filter.colorMatrix was close, but I couldn’t get it to preserve the alpha channel.
This seems like a common thing for a game to do (damage/powerup flash on a character), but nothing I’ve tried seems to work.
Does anyone know a good way to do this?
Thanks