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
37
S
16
G
2
Posts: 186
Reputation: 4,142

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
19
G
180
Posts: 3,482
Reputation: 103,185

Post » Tue Mar 31, 2015 5:41 pm

Thank you for the input. Worked great.
Image
B
37
S
16
G
2
Posts: 186
Reputation: 4,142


Return to How do I....?

Who is online

Users browsing this forum: Ethan, kabaal, oddreal, raulcg1981, SondeepH, TL22 and 8 guests