Hide/make transparent when player walks behind it?

@Victor

That xray script is pretty neat. But not what I'm looking for because it wouldn't make the other tiles around the player visible when walking behind a building. That way you can't see where you are walking (you might walk into a gap/trap). But I will use the script anyway for other purposes I think 🙂 . Thanks.

@Celianna

I tried it. It works just as well as using a parallax overlay for me. But I'd have to make a script that automatically removes the picture when I leave the map. Yami's parallax script can do this already for parallax layers. Without using any scripting at all, your method might just be the best method there is. But I decided that I'd go with Yami's parallax scrtipt and draw the layer on top of the regular tiles instead.

@Skye

Doesn't matter. As long as you keep in mind that the top-left corner will most likely be put at the 0,0 coordinate of the map.

EDIT:

This topic may be closed. I have enough solutions by now and already know how to proceed. Thanks everybody for taking your time to help me out here.
Just do you know ... you don't need a script to remove the picture when you leave the map. Simply erase the picture in the same transfer event you're using to move the player away from the map. It's as simple as that.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/hide-make-transparent-when-player-walks-behind-it.8829/