Problem with characters taller than 1 tile

Hi Khas,

I'm using Mack-size sprites in my game, and I'm running into a problem when the character is near the edge of a ledge on a higher elevation.

Here's my map, for reference:

JaxK35i.png


Here's my character in-game, standing in region 2 one tile before the edge (so far so good):

nBMhloM.png


But if I take one more step forward, the character's head gets cut off at the tile/region boundary:

Ljgu5A4.png


Is this a bug, or am I overlooking something?
Okay, I tried some stuff before answering this one, but it's a limitation of the system as well. This happens because of the viewports of the Spriteset_Map class. First we have the layer (or viewport) where characters are, then we have the lighting layer and above both of them we could consider one more layer. A solution to this problem would be to have the character partially on the 1st and 3rd layers, which is not possible. Even if we took the character out of the viewport, we still can't divide its sprite.


I tried to apply a shade on the character based on the light level, but it ended up looking weird. 


This is another problem of not having Z Buffering. If we had it, each pixel of the character would have its own z coordinate and there would be no problem in dividing the sprite between different z layers.

layers.png
I have the same problem too:


Senza titolo-1.png


This my referecen: (60 is a region sound)


Senza titolo-1.png
@Khas Sorry for the late response. Been on vacation at Disneyland the past week with the family. Anyway, thanks for looking into this and doing the investigation on it. Looks like this is another reason why shadows won't work in my game. But as I mentioned in the other thread, I think that's ok. I've gotten used to the lighting without shadows, and it still looks really good.
I've found this as well. Best workaround I've been able to do is very careful design of my maps, and not using dynamic shadows on most of them. Oh well.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-characters-taller-than-1-tile.53336/