It currently has a Z Ordering thing set up.
Develop games in your browser. Powerful, performant & highly capable.
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.
add line of sight to your white character sprite.
character has a line of sight to object" >>>> black character set invisible
else >>> visible