It currently has a Z Ordering thing set up.
You can move the shadow and the walls to another layer - above the sprite.
I already tried that previously, It doesn't seem to work.
Please explain the issue - are you trying to completely hide the enemy in that video? In this case placing it on a layer below the shadow should definitely work.
Develop games in your browser. Powerful, performant & highly capable.
add line of sight to your white character sprite.
character has a line of sight to object" >>>> black character set invisible
else >>> visible