<font size="5">Change Color Hue Of A Sprite?</font>
Hi,
How would I change the color hue of a sprite?
I need to make my spaceship turn red hue when hit by asteroid.
Thanks!
JeZ+Lee
We don't have great access to per-pixel operations with html5.
However it is possible to use an fx(webgl) to do that.
Develop games in your browser. Powerful, performant & highly capable.
There a plugin might help you
http://www.scirra.com/forum/behavior-sprite-effects-inject-text-on-sprite_topic51516_page1.html
The tint FX works pretty well, if you know the platform you're going to be running on supports webgl.
Otherwise I had to fall back to using a recolored animation for the sprite.