I'm trying to design a game that revolves heavily on the Shadow Caster behavior.
I'm using tiled backgrounds with the Shadow Caster behavior enabled and it works great, however whenever there is a 'joint' where two of the backgrounds meet, the shadows overlap each other. I know it's happening becayse they're seperate objects but I'm trying to get around that so the shadows look a bit more natural.
The way that makes most sense to me is instead of having the walls themselves be shadow casters, have the walls bordered on every side with invisible Shadow Casters. Then have any ones the player has Line of Sight to be deactivated or have their Shadow Depth set to 0, both have effectively the same result.
However, I can't seem to get it to identify the ones with LOS reliably. It'll go for a while and then one will suddenly register as LOS and stop casting a shadow, or I can move around another and it continues to cast shadows.
I have the LOS setup to only register the shadow casting objects as blocking LOS so nothing else should be in the way.
I don't know what the best set of commands to test for the LOS. I currently have the following
-for each 'Shadow Casting Object"
+ "Player" has LOS to "Shadow Casting Object"
set "Shadow Casting Object" Shadow Depth to 0
set "Shadow Casting Object" Shadow Depth to 5
Hopefully I'm just missing something obvious. If not I can post the source file shortly to see if someone can help figure out what I'm doing wrong.