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 )
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.
Develop games in your browser. Powerful, performant & highly capable.
Ok, thanks Ash. That solves one problem.
My shadows are still rendering on top of the shadowcaster sprites though. Any suggestions there?
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.
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.