Contextual transparency?

Hi,

I'm looking to replicate an effect I first saw in Witches House MV. When you walk behind this tree, it turns transparent.

1662328574115.png
1662328680596.png

I'm not sure how I would replicate this myself. The things i'm trying to apply this affect to are two large event sprites that cover a lot of the player's view when walked under. I'd like to try and achieve this affect using regions if possible.
I don't think a region is inherently helpful. You'd have to use something like Yanfly's Region Events to make that region call a common event, and for such a small, finite area it seems more straightforward to simply copy actual events there. (not to mention I don't think you can make a common event reference a specific other event on the map without getting into JavaScript)

Just make the events around the perimeter use a Move Route on the tree event to Change Opacity. Then put a second ring of events around them that changes it back when you step back out.
I don't think a region is inherently helpful. You'd have to use something like Yanfly's Region Events to make that region call a common event, and for such a small, finite area it seems more straightforward to simply copy actual events there. (not to mention I don't think you can make a common event reference a specific other event on the map without getting into JavaScript)

Just make the events around the perimeter use a Move Route on the tree event to Change Opacity. Then put a second ring of events around them that changes it back when you step back out.
Ahh thank you, but I don't think that placing individual events would work. The thing is i'm not actually trying to replicate this effect with another tree (apologies if the post was a bit vague) but with a large net that covers a fair amount of the map
1662391973580.png

That's why I wanted to use regions instead, so I can still place events underneath them. Though I will look into the yanfly plugin you mentioned!!
Well, you could still place events underneath them. You just need a border of events that will trigger the opacity change when you cross them, not to cover the entire area or anything.

But sure, give the Region Events a try.

Original thread: https://forums.rpgmakerweb.com/threads/contextual-transparency.151082/