How do I make a dark/night mask over a single layer?

Get help using Construct 2

Post » Mon Oct 20, 2014 4:54 pm

Here is my attempt. I use Source atop blend mode instead of TintMask.
You do not have the required permissions to view the files attached to this post.
B
34
S
9
G
3
Posts: 517
Reputation: 5,246

Post » Mon Oct 20, 2014 8:38 pm

And here is my LightMask/TintMask example, made specially for this friendly forum... :)

EDIT: This example has a single layer dark mask (whit light hole punched in), light tint mask (cycle) and sine opacity and size behavior, used to simulate the light flicker.
You do not have the required permissions to view the files attached to this post.
Last edited by Lunarovich on Mon Oct 20, 2014 9:18 pm, edited 2 times in total.
B
6
S
2
Posts: 64
Reputation: 576

Post » Mon Oct 20, 2014 8:46 pm

Good job Katala.
Lunarovich, thanks for your example.
Certainly, this forum is full of friendly people. From the creators of the TOOL (in capitals), the software itself, and all the community, have reached a level I haven't seen before on any site.

I learn a lot every day with every topic.
B
26
S
4
G
1
Posts: 58
Reputation: 1,559

Post » Mon Oct 20, 2014 8:58 pm

@Katala, thanks for the blend mode additive tip for pre-baked light tints. Probably a better solution on the level of aesthetics and performance than my TintMask application.
B
6
S
2
Posts: 64
Reputation: 576

Post » Mon Oct 20, 2014 9:19 pm

One thing to note is that it is better to make Paster object follow screen and make it slightly bigger than what can be seen to cope with set position lag.
On larger levels the image memory usage will rise quickly if Paster object is very large.
B
34
S
9
G
3
Posts: 517
Reputation: 5,246

Post » Mon Oct 20, 2014 10:33 pm

Yeah, thanks for the tip.

Although C2 does not render non visible parts of the layout and there is no performance loss, Paster still renders off screen to the intermediate texture, I suppose. Did you test the performance on the large layout or is it just an educated guess?
B
6
S
2
Posts: 64
Reputation: 576

Post » Tue Oct 21, 2014 11:57 am

I remembered that I had large image memory usage before when using large Paster object but, now I don't see much of a difference testin on 6000x6000 object and layout. So I'm not actually sure how it works :/
B
34
S
9
G
3
Posts: 517
Reputation: 5,246

Post » Tue Oct 21, 2014 4:36 pm

Maybe a number of your lightmasks is simply too small to notice any performance difference...
B
6
S
2
Posts: 64
Reputation: 576

Previous

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 23 guests