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
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Sat Feb 16, 2013 5:50 am

B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

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: 99Instances2Go, Google [Bot] and 22 guests