I've been trying the shadow casting behaviour and I encountered some problems.
I have 3 questions:
- I realized that shadow casting objects under another shadow (from another object) doesn't disappear. For example: walls out of sight are still there. Is there a way to make it more realistic?
Here you can see that the wall is out of sight but still displayed.
- Is there a way to test if a sprite is under a shadow or not?
- Is there another way to make sprites under a shadow disappear than putting them at a lower layer?