How do I cut off text outside of a tiled bg?

Get help using Construct 2

Post » Fri Aug 08, 2014 2:13 pm

Hi. I played around with blend modes for quite some time but could not manage to create the desired effect. Does anyone know or if this is even possible with blend modes?

I have a background image, a tiled background with transparency in the middle and a text object which scrolls from bottom to top but it should be only visible if it is inside the area of the tiled bg and "cut off" below and above the tiled bg. Any ideas?
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
57
S
17
G
6
Posts: 751
Reputation: 9,451

Post » Fri Aug 08, 2014 8:18 pm

Maybe rearrange the layers top to bottom:

The Rest Of The Layout (everything except the Tiled BG & the Text)
Text
Tiled Background

so that the text can be hidden by the stuff you said is "below & above the tiled bg".

Example: https://www.dropbox.com/s/x3nw0whdpmf615g/textOverBGOnly.capx
Phase 1: Collect Underpants.
Phase 2: ????
Phase 3: Profit!
B
16
S
5
G
4
Posts: 106
Reputation: 2,450

Post » Sun Aug 10, 2014 6:36 am

Thank you for your example @miketv. I already thought about doing this but the background is a very big/colorful image and I had to slice it and then put it together again. I can do this, but it would be nice if it would be possible without slicing the image and just using blend modes (if possible). :)

Here is an example screenshot:
Image

Text should be invisible in the small part below the grey area and above it. So the text is only visible on the greay area (tiledBG) and should scroll from bottom to top.
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
57
S
17
G
6
Posts: 751
Reputation: 9,451

Post » Sun Aug 10, 2014 2:35 pm

Yeah, it would be better to do this without slicing up your bg. I don't know much about blend modes...I'll be interested to see the solution.
Phase 1: Collect Underpants.
Phase 2: ????
Phase 3: Profit!
B
16
S
5
G
4
Posts: 106
Reputation: 2,450

Post » Sun Aug 10, 2014 2:46 pm

You can use blend modes for masking/cutting out things.
You do not have the required permissions to view the files attached to this post.
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 35,968

Post » Sun Aug 10, 2014 6:26 pm

That's it! Thank you.
But I had to search a bit to find the objects with a different blendmode. So you have to use ForceOwnTexture+Blendmode.

/update: I tried to copy the effect from your example and created a new layer on top, added the tiledbg objects, set them to destinationout and then enabled forceowntexture for the layer but the text one layer below is still visible. :/
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
57
S
17
G
6
Posts: 751
Reputation: 9,451

Post » Sun Aug 10, 2014 7:09 pm

Sorry for that, It's habit to recycle existing object.

Masks and Text must be on same layer. Text object must be below masks.
Z.PNG


I've modified my example to explain better what's going on.
Mask.capx
You do not have the required permissions to view the files attached to this post.
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 35,968


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests