Change Colors

Get help using Construct 2

Post » Mon Jan 23, 2012 7:34 pm

I was wondering if there is a way to change colors to a sprite, for exemple deactivating one of the 3 rgb channels, or inverting the colors of the sprite.
I found that in CC there was something like that, so maybe there is even in C2 but I didn't find it
B
5
G
1
Posts: 32
Reputation: 939

Post » Tue Jan 24, 2012 7:35 am

Not yet (:
In cc there was filter. It was a color put on top of your sprite (probably with multiply mode but I'm not sure)
But in c2 you can't do that yet, pixel manipulation is a pixelShader thingy that works with the graphic card. So it would be a webGL thing... and it's not yet implemented in c2 (dunno if it is in webGL yet)
B
61
S
22
G
14
Posts: 1,480
Reputation: 16,373

Post » Tue Jan 24, 2012 9:04 am

I was just about to post the same thing...
Right now I use the additive effect, which creates a transparent effect on the sprite (if you have a background image) but coloring would be much better.
B
34
S
8
G
6
Posts: 34
Reputation: 4,954

Post » Tue Jan 24, 2012 11:16 am

@Yann

Somehow I feared something like that u,
I hope it will be implemented sooner or later, in the meanwhile I'll try something similar with the sprite effects :)
Thanks for the info Yann!



@drpool

Yep, just like you I started to use the sprite effect in order to replace that function, but it would be better with rgb
B
5
G
1
Posts: 32
Reputation: 939

Post » Tue Jan 24, 2012 9:06 pm

I know that Scirra is planning on implementing pixel shaders powered by webgl... Colour manipulation is an obvious choice.sqiddster2012-01-24 21:06:42
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,440

Post » Tue Jan 24, 2012 9:44 pm

If only WebGL were to be universally accepted... Yeah it's possible to do color tinting in canvas but i think it's not fast enough for games. Never tested. I think something in the line of WebGL, Molehill or NaCL is the future of games on web. Canvas is just not good enough. Specially in mobile domain. I saw that the % of web mobile games is less than 1%. Or something around that. Don't know if it's true. That's sad.
B
58
S
13
G
10
Posts: 632
Reputation: 12,535

Post » Mon Jun 10, 2013 2:56 am

i hope to see this in construct,i really need something like this for my project.
GMO FOOD = DEATH
B
22
S
9
G
5
Posts: 567
Reputation: 6,328

Post » Mon Jun 10, 2013 3:59 am

[QUOTE=RookieDev] i hope to see this in construct,i really need something like this for my project.[/QUOTE]

Check webgl effects like tint.
B
24
S
8
G
7
Posts: 756
Reputation: 7,212

Post » Mon Jun 10, 2013 4:53 am

CC uses DirectX after all. WebGL would be another solution.
B
103
S
28
G
22
Posts: 3,063
Reputation: 24,142

Post » Mon Jun 10, 2013 5:15 am

@Joannesalfa @vee41 Thanks for the reply guys,what would you guys consider being the best way? i know that i would rather change a sprites color rather than adding 20 sprites with different color variations.Is WebGL able to colorize?
GMO FOOD = DEATH
B
22
S
9
G
5
Posts: 567
Reputation: 6,328

Next

Return to How do I....?

Who is online

Users browsing this forum: TommyR and 22 guests