How do I use gradient mask?

Get help using Construct 2

Post » Mon Sep 19, 2016 8:27 am

Hello all,

I would like to get to this required result:

Image

I can create a spritefont with borders and all, but I can't figure out how to use the gradient colors, and it gets tricker. if I have 2 lines of text, the gradient should be darker in the second line, meaning this isn't the same gradient for each letter, otherwise I would just paint the gradient on top of the spritefont.

I was thinking of creating a gradient sqaured layer below the spritefont, and use some blending modes between the 2, but I couldn't find the combination that would allow me to achieve this.

Does anyone have an idea?

Thanks!!
B
18
S
7
G
1
Posts: 161
Reputation: 1,941

Post » Mon Sep 19, 2016 10:22 pm

You could make two sets of the spritefont. One with the outline and one with just a solid colored inside. The inside ones you could put on it's own layer with a gradient sprite that uses a blend mode. Also be sure that layer has force own texture.
B
94
S
33
G
123
Posts: 5,449
Reputation: 78,461

Post » Tue Sep 20, 2016 7:19 am

Thanks @R0J0hound, wouldn't it be wasteful to have 3 sprites for each text?

I guess if all else fails, I might consider this... :/
B
18
S
7
G
1
Posts: 161
Reputation: 1,941

Post » Tue Sep 20, 2016 9:52 am

It's a solution for it. To use a blendmode you need to isolate the stuff you want to use, and separate objects would do that. Other options could be to make a image per text or maybe write an effect that replaces a certain color and replace it with a gradient.
B
94
S
33
G
123
Posts: 5,449
Reputation: 78,461


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests