Custom tilesets problem

Recently, we decided to implement custom tilesets in our game to allow characters to walk behind objects. However, on a specific map, the tileset doesn’t seem to work correctly, causing certain parts of the sprite to become transparent when passing behind objects.

Here's a video with the problem


We've tried adjusting the position, resizing the tileset, and even separating the object into different parts, but the issue persists no matter what we do.

This is how it's programmed in game and the tileset sheet we're using
Captura_de_pantalla_2025-04-01_193254.png

fixed_12_Custom_tilesets.png


Does anyone know how to fix this? My theory is that the map’s grid is cutting off part of the sprite, making that section of the building appear incorrectly.

This is how it looks on the map editor
Captura_de_pantalla_2025-04-01_193305.png
make the top part also a * so you have the top 2 in stars (above character).
an X means not passable, while O is, * is above character.
make the top part also a * so you have the top 2 in stars (above character).
an X means not passable, while O is, * is above character.
Hello, it actually worked lol

Thank you!!

Original thread: https://forums.rpgmakerweb.com/threads/custom-tilesets-problem.176688/