MV Need help with players layer (trees back, home back, stucture back) transparent and player is shown.

Hello I need a script that show player behind trees, objects like home back.
How I see this script:

# If player go behid object (star symbol in editor), then show transparent picture on player. So player can be shown (like a light in the night) and I know where exactly is player behind objects.

In common event(parallel);
variable map id= Map ID;
variable player position x= Player map X;
variable player position y= Player map Y;
#So I can call it on every map

image[2]=transparentImage.png #Small transparent circle image over the player.

if player is behind an object then show image[2] on player(map Id, Player position x, Player position y);
else
do nothing. #So, script don’t show image[2] on other objects.

I need this function for player to find hidden objects by big trees or huge buldings backgrounds, like chests or missing items.

If anyone can do this script for me, I’ll be very happy 🙂
there is a scriptcall you can use and a common event.
there is already a thread how to do it.

you can find it [here], keep in mind, that the X, Y can be complex
in shapes, (so read further down how too), but it isn't easy, but
once you get it to work and the shape, it is mostly copy, pasting.

so you have to do a setup in a common event that is also a parallel
for the player x,y checking constantly.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-players-layer-trees-back-home-back-stucture-back-transparent-and-player-is-shown.155506/