How do I make a new layer entirely in Events

Get help using Construct 2

Post » Fri Oct 24, 2014 12:20 am

Hey guys, so i was wondering if there was a way to make another new layer in the event sheet, because i'm making different light sources and i don't want the "ShadowLight" to affect other light sources so i added a "Source Top" blend but then i have to make another layer so when i need to make another light source by for instance clicking on the screen it will make another layer and not create the light on the same layer.

well, that was long.

Please, do check out the Capx.

More than one Light Source.capx


You're gonna need the BlackToAlpha effect, somehow i can't find it on the forums so i'm just gonna upload it here.

effects.rar


I'd appreciate ANY help!
You do not have the required permissions to view the files attached to this post.
Last edited by Wisdoms on Fri Oct 24, 2014 9:29 am, edited 1 time in total.
B
21
S
6
Posts: 244
Reputation: 2,655

Post » Fri Oct 24, 2014 2:01 am

From the way I am understanding this. You want to create a new layer and set it to initial visible to invisible, and have the touch event make the layer visible and then have the light source be created on the newly visible layer.
B
34
S
10
G
4
Posts: 93
Reputation: 4,036

Post » Fri Oct 24, 2014 9:01 am

@Drewford Yes, because if i create light sources on the same layer the "Source atop" blend will just blend ontop of all the light sources, The "Shadowlight" has the blend btw.
B
21
S
6
Posts: 244
Reputation: 2,655

Post » Fri Oct 24, 2014 12:07 pm

There is no create layer event..
The layer should be added in the editor.
The layer can remain invisible untill needed, at which time you can use the system set layer visible event.
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 » Fri Oct 24, 2014 12:27 pm

@LittleStain Well, can i make the "ShadowLight" Source atop inside the one sprite that's below it only and the whole sprites that's below it?
B
21
S
6
Posts: 244
Reputation: 2,655


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], ksiads and 2 guests