Light and Mask layer effects problems

For questions about using Classic.

Post » Sat Aug 30, 2008 11:36 pm

Okay, so I'm finally getting around to experimenting with Lights and shadowcasters, but I've run into a problem:



The shadows are rendering on top of my shadowcasting objects.

Also, when I set the top layer (the one with the light) to Mask effect, it messes up everything:



It looks fine in the IDE though, it only messes up at runtime.

Is this a known issue, or should I submit this to the bugtracker? Or am I just doing something wrong?

Here's the .cap: http://www.fileshack.us/get_file.php?id ... owmask.cap

(Edit: This was made in 96.4... the new verison came out while I was messing around with this stuff :P)
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun Aug 31, 2008 12:31 am

Why are you trying to use mask? It's for cutting holes in things. I think you want to put on Multiply for lighting - and turn off transparency on that layer for it to work.
Scirra Founder
B
357
S
214
G
72
Posts: 22,946
Reputation: 178,228

Post » Sun Aug 31, 2008 12:37 am

Ok, thanks Ash. That solves one problem.

My shadows are still rendering on top of the shadowcaster sprites though. Any suggestions there?

Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun Aug 31, 2008 1:01 am

I think you'll have to put the Light (which draws the shadows) on layer 3, so it doesn't draw over the casters. You'll need a sprite with the white spot to do the lighting on the top layer.
Scirra Founder
B
357
S
214
G
72
Posts: 22,946
Reputation: 178,228

Post » Sun Aug 31, 2008 1:44 am

Yep, that did the trick :) I guess I was just thinking "put the light on the top layer, because lights come from overhead" or something.

Thanks for the help.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest