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
163
S
48
G
101
Posts: 7,463
Reputation: 72,548

Post » Sat Feb 16, 2013 5:50 am

B
104
S
29
G
23
Posts: 3,070
Reputation: 24,781

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
26
S
8
G
3
Posts: 210
Reputation: 5,973


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 18 guests