How do I show sprite only on white

Get help using Construct 2

Post » Sat Feb 21, 2015 12:42 pm

Hi,

I was wondering how I could show a part of sprite that is on a white background and not the part that is on the black

I found the "Difference" effect, which show the real sprite color on a black background and a black color on another background, but it isn't what I'm looking for.

Here are some pictures to explain what I would like :
Here is a sprite :
Image
Here is how I would like the sprite to show :
Image
B
5
S
1
Posts: 4
Reputation: 398

Post » Sat Feb 21, 2015 12:59 pm

Well, you have to cover it up with something - this might as well be black rectangles on another layer that's above the layer where your sprite is.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Sat Feb 21, 2015 1:21 pm

I knew it is possible to do that, but I find it a bit ass-coded (sorry for my rudeness, I don't know the English word to say that...). Isn't there a way to do that with a WebGL effect or something like that ?
B
5
S
1
Posts: 4
Reputation: 398

Post » Sat Feb 21, 2015 1:30 pm

Image
Source-in ?
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Sat Feb 21, 2015 1:33 pm

No, something like source-atop I think, but the background is black and the blue sprite is white. How can I do that ?
B
5
S
1
Posts: 4
Reputation: 398

Post » Sat Feb 21, 2015 1:40 pm

Ok, I found what I was searching for. I added the Substract effect to my sprite with the Source in blend mode. It invert the colors, but nevermind, I inverted it on my sprite. Thanx everybody !

edit: The Multiply effect I finally used don't invert colors
B
5
S
1
Posts: 4
Reputation: 398


Return to How do I....?

Who is online

Users browsing this forum: blue visionary, OBLIVION, tarek2 and 17 guests