How do I mask and object with another object?

Get help using Construct 2

Post » Tue Mar 31, 2015 4:42 pm

Is it possible to mask a sprite with another sprite? IE I have text scrolling across the screen and only want it visible in the bottom right corner in a box. Is it possible to mask out the scrolling text so it is only visible where the box is?

Capx
https://dl.dropboxusercontent.com/u/729 ... icker.capx
Image
B
46
S
17
G
2
Posts: 201
Reputation: 4,526

Post » Tue Mar 31, 2015 5:06 pm

You are looking for blendmodes
There's a nice example shipped with C2 in the new project dialog.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Mar 31, 2015 5:09 pm

You need the ticker on a new layer with "Force own texture" on, the box white, and the text above it in Z, and the blend mode set to "Source atop".

If you do "New" and search for blend, you will get the Blend demo, with all of the options.

(I have an example, but the website won't let me attach at the moment (again)).
ImageImageImage
B
71
S
22
G
240
Posts: 3,734
Reputation: 133,994

Post » Tue Mar 31, 2015 5:41 pm

Thank you for the input. Worked great.
Image
B
46
S
17
G
2
Posts: 201
Reputation: 4,526


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, busydude, Google [Bot] and 21 guests