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
30
S
14
G
2
Posts: 177
Reputation: 3,746

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
53
S
16
G
8
Posts: 6,157
Reputation: 19,744

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
70
S
19
G
139
Posts: 3,318
Reputation: 82,218

Post » Tue Mar 31, 2015 5:41 pm

Thank you for the input. Worked great.
Image
B
30
S
14
G
2
Posts: 177
Reputation: 3,746


Return to How do I....?

Who is online

Users browsing this forum: newt, pokka and 4 guests