change the sprite layer according to where the player is

Hi, funnys

My game has a large open world map and this ends up causing some conflicts in sprites.

In this bridge, for example, the character always goes over it, regardless of being in the layer below or not.
1667926518690.png


Is it possible to make the bridge appear from above when the player is below and below when he is above?
It is possible but does require some work.

You have to not map that portion of the bridge (only the portion that the player can go under) with the map editor, but use events to map it. Then in the event, you create 2 pages, one with the event being above the player, and another with the event being under the player. Then you set a switch to determine if an event is over or under. However, that will require you to control that switch every time there's a change in elevation.

There is more than one way to achieve this, but that's how I personally do it.
It is possible but does require some work.

You have to not map that portion of the bridge (only the portion that the player can go under) with the map editor, but use events to map it. Then in the event, you create 2 pages, one with the event being above the player, and another with the event being under the player. Then you set a switch to determine if an event is over or under. However, that will require you to control that switch every time there's a change in elevation.

There is more than one way to achieve this, but that's how I personally do it.

vwill i have to put the whole bridge as an event?
vwill i have to put the whole bridge as an event?
Only the portion the character is able to go under.

Original thread: https://forums.rpgmakerweb.com/threads/change-the-sprite-layer-according-to-where-the-player-is.152550/