Change Color Hue Of A Sprite?

Get help using Construct 2

Post » Sat Feb 16, 2013 5:05 am

Change Color Hue Of A Sprite?

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
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Sat Feb 16, 2013 5:09 am

We don't have great access to per-pixel operations with html5.
However it is possible to use an fx(webgl) to do that.
Image Image
B
164
S
49
G
111
Posts: 7,621
Reputation: 77,941

Post » Sat Feb 16, 2013 5:50 am

B
105
S
29
G
28
Posts: 3,100
Reputation: 27,376

Post » Sat Feb 16, 2013 9:17 am

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.
B
27
S
8
G
3
Posts: 210
Reputation: 5,998


Return to How do I....?

Who is online

Users browsing this forum: imothep85, lamar, oddreal and 2 guests