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
165
S
49
G
146
Posts: 8,037
Reputation: 96,064

Post » Sat Feb 16, 2013 5:50 am

B
96
S
33
G
29
Posts: 3,137
Reputation: 28,130

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,018


Return to How do I....?

Who is online

Users browsing this forum: Cryttexx, imhotep22, RXIIIGAMES, SnipG, zenox98 and 11 guests