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 ImageImage
B
168
S
50
G
164
Posts: 8,236
Reputation: 105,591

Post » Sat Feb 16, 2013 5:50 am

B
97
S
35
G
29
Posts: 3,139
Reputation: 28,361

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: 6,038


Return to How do I....?

Who is online

Users browsing this forum: imothep85, KTML5, Yahoo [Bot] and 1 guest