Shadows "Cast shadow as one"

This forum is currently in read-only mode.
From the Asset Store
professionally animations with Brashmonkey Spriter !
  • In this image you can see that when you build a level out of many sprites, the shadowcasting looks all messed up. Either the light can reach an area or it can't. Shadows of diferent opacity should only be used when ther's multiple light sources.

    In this image where ther's just one shadow caster it looks just like it should:

    But when you ad two objects it doesn't look right.

    This is what it should look like.

    As you can see the shadow caster engine doesn't render the shadows the right way. It shouldn't make the shadow darker if there are two objects blocking the light. It should make all shadows have the same color, but make it brighter if there a lightsource reaching it.

    Attan

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • A way around that is to put the light on a separate layer, set the shadow opacity to 100 and the layer opacity to 50.

  • That's right, the actual shadow opacity doesn't give the intended effect because each object's shadow is drawn separately so overlaps will not work quite right. Using opaque shadows on a semitransparent layer should give the intended effect - there are a couple of examples in this thread which should show how to do that.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)