How do I change sprite RGB

Get help using Construct 2

Post » Mon Jun 02, 2014 4:37 am

Hi
I just want to know if it's possible to change the RB values of a sprite in construct, because i need to change the color of the main character for the main mechanic of the game
THanks in advance
B
15
S
3
G
3
Posts: 37
Reputation: 3,627

Post » Mon Jun 02, 2014 1:01 pm

You have two options with this I believe. The best one that should work everywhere is to create all your sprites in every possible color you would need and to upload them in to your project. You then change it to that animation when you need it.

Your other option which will only work if you have WebGL available to you is to use one of the built in C2 Effects such as "Set Color." This will allow you dynamically change your RGB channels through the Effect. If your project defaults back to the Canvas2D this wont work though. So the first method is probably the safer method to guarantee it works.
"In truth we live, In Truth we die"
B
11
S
3
G
4
Posts: 22
Reputation: 3,177

Post » Mon Jun 02, 2014 7:11 pm

Xerullian wrote:You have two options with this I believe. The best one that should work everywhere is to create all your sprites in every possible color you would need and to upload them in to your project. You then change it to that animation when you need it.

Your other option which will only work if you have WebGL available to you is to use one of the built in C2 Effects such as "Set Color." This will allow you dynamically change your RGB channels through the Effect. If your project defaults back to the Canvas2D this wont work though. So the first method is probably the safer method to guarantee it works.


Thanks for your reply!
Yeah, I'm going to use the webGL effect called tint, it's just what I need.
Best
B
15
S
3
G
3
Posts: 37
Reputation: 3,627


Return to How do I....?

Who is online

Users browsing this forum: vegapomme27 and 9 guests