How do I create paintbrush eraser effect

Get help using Construct 2

Post » Wed Jun 25, 2014 11:48 am

Hello

I have an image that I want to swipe over and the section that is swiped is cleared(or section made transparent). Like a paint brush eraser action. Does any one know how to do this without any WebGL effects used? I have the swipe events already.

Thanks in advance!
B
26
S
6
Posts: 39
Reputation: 1,574

Post » Wed Jun 25, 2014 3:59 pm

I think blend modes are the way to do that. https://www.scirra.com/manual/146/effects

But i cant realize how you can do a fine effect (like anti-alias or feather) using that. And it will generate a fake erased area.

Good luck :)
-- Ze - Z - Zé --
B
19
S
4
G
1
Posts: 26
Reputation: 1,921

Post » Thu Jun 26, 2014 2:25 am

Thanks @pxzin for pointing me in the right direction :)

I worked it out, just added a layer0 for the background image. Then a layer1 on top with the image that needs to be erased. set a brush sprite object on layer1 to Destination Out blend mode. Similar to the Lighting C2 example. Too easy!
B
26
S
6
Posts: 39
Reputation: 1,574

Post » Thu Jun 26, 2014 11:25 am

@DevDan Glad to be helpful :)
-- Ze - Z - Zé --
B
19
S
4
G
1
Posts: 26
Reputation: 1,921

Post » Fri Jan 30, 2015 8:51 am

Hello @DevDan will you please post the capx file for this eraser effect please?
B
7
S
1
Posts: 20
Reputation: 776


Return to How do I....?

Who is online

Users browsing this forum: pcfernandesjr and 21 guests