[Answered] Moving window

Just started using Construct 2? Post your questions here

Post » Tue Aug 09, 2016 3:43 pm

.
I searched for a while, but with 100+ pages of tutorials, I couldn't figure the key words to find the information I need.

The effect I want to pull off is a moving 'window' showing through to Layer X.
Example 1: A moving portal. The sprite (Curved rectangle) moves across the screen, and wherever it is, you see through to whatever is behind it.

Example 2: Two squares, one is red, and the other blue. Wherever they touch, instead of purple, you get invisible and see through to the background.

The reason I'd like to do this is because I have a fuel bar that is a rectangle and the width changes. I want to put an image on top that makes it invisible, except for the curved cutout through the middle. So that the fuel bar, looks curved as it goes up and down.
I'm guessing there is a simpler way to do a curved fuel bar, but I'm still learning stuff so I figure this would be more interesting to learn how to do.
Last edited by Nicadeamas on Thu Aug 11, 2016 10:37 pm, edited 2 times in total.
B
9
S
4
G
1
Posts: 10
Reputation: 1,247

Post » Tue Aug 09, 2016 5:13 pm

You want to use blend modes.
Check over in preferences, next to Effects.
Image ImageImage
B
172
S
50
G
182
Posts: 8,439
Reputation: 115,097

Post » Wed Aug 10, 2016 12:45 am

.
Well I fiddled with the blend modes for about an hour and a half, and I messed around with some effects, but I can't seem to get the right combination.
I did get close though, it's cured how I wanted, but instead of being transparent when the green line is gone, it's black.

But I think that's good enough for now. 8-)
Thanks Newt!
B
9
S
4
G
1
Posts: 10
Reputation: 1,247

Post » Wed Aug 10, 2016 3:21 am

Hi Nicadeamas!
Just saw your picture. 8-) :D
B
31
S
13
G
1
Posts: 41
Reputation: 2,958

Post » Thu Aug 11, 2016 10:35 pm

.
Hehehe. Been watching for you.
Hi. 8-)
B
9
S
4
G
1
Posts: 10
Reputation: 1,247


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests