How do I Add color from grayscale effect

Get help using Construct 2

Post » Wed Jan 11, 2017 3:11 pm

Hello,

I wanted to know how can I make a background image that I have turned into a gray with grayscale effect turn into back into color (not the complete image but parts they have clicked) via a coloring brush as the user holds down the left mouse button.

Thanks,

John
B
19
S
4
G
2
Posts: 37
Reputation: 2,494

Post » Wed Jan 11, 2017 5:50 pm

You would have to achieve this with two layers. The layer below would be the image, the layer above would be the grayscale layer. IIRC, you want to set the grayscale layer to not be transparent, give it the effect 'Grayscale Mask' (or you might have to use 'Adjust HSL Mask' and reduce saturation to -100), and set Force Own texture for that layer to 'yes'.

When the user paints, have them create objects with the 'Destination Out' blend mode on your Grayscale layer.
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 237
Reputation: 2,296

Post » Wed Jan 11, 2017 11:23 pm

Thanks for your help! That worked.

John
B
19
S
4
G
2
Posts: 37
Reputation: 2,494

Post » Thu Jan 12, 2017 10:49 am

Oh good! It was written on the phone off the top of my head, so that's luck as much as anything :P
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 237
Reputation: 2,296


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests