🦸🏻 Player: Fade events when Player is behind

This feature is common in top-down action games. When your character moves behind a tree, the tree fades to keep your character visible. This is especially useful in situations where large objects or events might obscure your player.

RESULT


Step 1 - Common Event Setup


First, let's create a common event to handle these actions.

In this common event, create a conditional branch called checkRange to check if the player is within 2 tiles of the event. If true, add another condition to check if the event's Y position is higher than the player's Y position.

Explanation: Suppose the tree event is at X: 15, Y: 1. If the player is at Y: 2 (below the tree), the condition will not return true. However, if the player is at Y: 0 or lower (above the tree), it will return true.

In RPG Maker, the coordinate system is as follows:

X increases to the right, -X to the left; Y increases downward, -Y upward.





5 RPG Maker Action Combat Manual: 🦸🏻 Player: Fade events when Player is behind This feature is common in top-down action games. When your character moves behind a tree, the tree fades to keep your character visible. Thi...
< >