How do I accomplish this?

Get help using Construct 2

Post » Fri Apr 14, 2017 5:42 pm

I want to make some of my levels dark with only a circle around the player visible. So, I can do this simply by creating a black mask sprite with a circle in the center and make that sprite follow the player. However, I also want to make other objects apart from the player to 'emit light', so If I make black masks for all of these 'light emitters' they will conflict with each other.

As far as I know, this cannot be done with C2 on its own. So, is there some plugin I can add to it?
My first project:
Image
B
20
S
8
G
1
Posts: 172
Reputation: 2,463

Post » Fri Apr 14, 2017 7:10 pm

Can I ask what you mean by "conflict with each other?"
B
69
S
40
G
24
Posts: 355
Reputation: 18,312

Post » Fri Apr 14, 2017 8:43 pm

Well, the black part of the mask will cover the transparent parts of other masks. Get it? You see, the goal is to make the rest of the level black, except for the areas I don't want, but adding a mask on each area I want it to be visible will make them cover each other and my whole level will be black....
My first project:
Image
B
20
S
8
G
1
Posts: 172
Reputation: 2,463

Post » Fri Apr 14, 2017 9:06 pm

I don't completely understand what you're trying to do, however you could use a layer above your game (but below the UI layer), fill it with a black background and set the opacity to your desired level.

Try exploring that option first and see what you can do with it before you decide to look for an external addon
Image Image Image
B
32
S
12
G
27
Posts: 761
Reputation: 17,244

Post » Fri Apr 14, 2017 11:30 pm

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Sat Apr 15, 2017 2:03 pm



Exactly what I wanted! Thanks a bunch!
My first project:
Image
B
20
S
8
G
1
Posts: 172
Reputation: 2,463


Return to How do I....?

Who is online

Users browsing this forum: Christmas and 48 guests