Why doesn't Shadow Caster behavior hide sprites?

0 favourites
  • 3 posts
From the Asset Store
Make your game more fun and interactive with the Dog Hide and Seek Buttons Sprite Sheet.
  • That's it, im making a tile map based game where I have doors (sprites) that work also as Shadow Casters, so that they block the light and the player doesn't know what's behind them but the thing is that for example the walls I have (which also are Shadow Casters) do not hide the Doors, because they are sprites and the behavior does not hide sprites :c.

    So in the end I had to add LoS to the player and make doors invisible when not in LoS but this doesn't work entirely well as I have some bugs related to the doors dissapearing.

    giphy.com/gifs/nYT2l0sfo5qmrZHSsS

    As you can see in the GIF, the door does not show up if im in the middle tile (even tho I should have a clear line of sight since it's right in front of me) but it doesn't show up until I move closer to it. And no the problem isn't the distance of the LoS, already tested that.

    If anyone knows how to help me I would appreciate it.

    Tagged:

  • Shadow Caster will draw over anything below it in Z order. If something still appears over the shadow, make sure it's below the Shadow Caster in Z order.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello!, thank you for your answer, unfortunately this still doesn't work and I think that the reason is that the door is also a Shadow Caster (I want to make doors hide what's behind them), so maybe there's a way to make some Shadow Casters draw over even other Shadow caster objects?

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