How do I Use a black/white fading sprite as mask?

Get help using Construct 2

Post » Fri Feb 24, 2017 2:42 pm

Hello Guys,

i didnt find anything for this in my opinion simple thing: I got a bg with some sprite images iam moving from left to right and vice versa. I want to generate a simple menu selection screen. So far so good.

On the left and right edges i placed some black to transparent fading spirtes -> i simply want to use them as mask for the graphics (menu sprite images).

The effect:
The menu sprite images should be fadet out and when they move into the centre of the screen it should look like theyre fading in from the edges. They shouldnt be visible if theyre moving into the layout until they leave the black mask area. But i cant set it up with the mask settings or tutorials etc.

Plz take a look onto the screenshot to get a better idea about the problem: (Focus on the right edge of the layout)
https://s17.postimg.org/otelynn5r/Problem.jpg



Has anyone a hint or a solution for this? This is so annoying, because i tried blend modes on the sprites/layers etc. and combined them - but nothing did the trick...

Thank you very much!
B
8
S
2
Posts: 141
Reputation: 1,002

Post » Fri Feb 24, 2017 5:46 pm

I don't you will get the effect using 'black to transparent' ?
It might work better with 'white to transparent' (or whatever color your background is)
B
21
S
6
G
8
Posts: 1,215
Reputation: 7,881

Post » Thu Mar 02, 2017 10:23 am

Still a problem... :/
B
8
S
2
Posts: 141
Reputation: 1,002

Post » Thu Mar 30, 2017 7:09 pm

@congrats2u

1- Put the GUI objects you want to fade on their own layer
2- In the layer properties, set "Force own texture" to yes for that layer
3- Set the blend mode for the fade sprites you have at the edge of the screen to Destination Out
4- Make sure the fade sprites are the top objects on the layer
B
76
S
43
G
24
Posts: 525
Reputation: 20,555


Return to How do I....?

Who is online

Users browsing this forum: guannstar, marcinkowski and 21 guests