Sprites with shadow caster behaviour act differently under different angles of shadow caster

Not favoritedFavorited Favorited 0 favourites
  • 2 posts
From the Asset Store
Cute cartoon girl character with Walk, Jump, and Idle animations for 2D games.
  • Recently I've been experimenting with shadow light in my game Devoid. It should work like it normally does, but some sprites don't cast shadows depending on the position of the shadow light.

    In the below image, a sprite on the right of the screen does not cast a shadow

    In the next image, the same sprite casts a shadow, but in its place another sprite refuses to do so:

    For each of the shadow caster sprites, i did modify the collision box so that it reveals some of the sprite, for the sake of the game not just having black walls. How do i fix the sprites not casting shadows, or are there alternatives to the effect that I'm aiming for?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Shadow lights can only handle shadow casters which have convex collision polygon shapes. So the effect will break on shadow casters having concave polygon shapes. Make sure that's not the case and that there aren't multiple polygons on the exact same spot.

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