Is there any way of detecting that a sprite is intersecting with the shadow cast by another sprite?
The only way I can think of is to check the colors at future sprite position with some detectors.
Anyone has a better idea? Thanks.
Develop games in your browser. Powerful, performant & highly capable.
If you mean shadows cast by the shadow caster behavior, I don't think it's possible to check. What exactly are you trying to achieve?
I remembered an old rapid prototyping challenge for a game revolving around shadows. I would like to have a character that has to move from point A to point B in a level, while staying in the shadows cast by level design blocks and one or more moving lights. He takes damage while out of the shadows.
Ah right. I'd think you'd be better off making custom shadows/cones of vision here, like a lot of games of this genre do.