So... I have a character that's 2 tiles tall, that I want to see go under the wall when entering a doorway, but if there is a character that is 5 tiles tall passing by, it needs to be over. How do I do this?
Tall Characters and Doorways
RPG Maker MZ SupportYou could turn the upper part of the door into an event, or try something like TF_LayeredMap.js. I use the former for many of my layering needs.
That script only seems to work for character tile height 1 or 2, but making the ceiling part of the door might just work. I'll update once I had a chance to make and test that out.
EDIT: It worked (kinda). I had to add some custom js to fix a flickering issue, where the head has some z axis clash while moving, but I fixed that by making add events with THROUGH ON have their z + 0.5.
EDIT: It worked (kinda). I had to add some custom js to fix a flickering issue, where the head has some z axis clash while moving, but I fixed that by making add events with THROUGH ON have their z + 0.5.
JavaScript:
(alias => Game_CharacterBase.prototype.screenZ = function() {
return alias.apply(this, arguments)
+ (this.isThrough() ? 0.5 : 0)
})(Game_CharacterBase.prototype.screenZ);
Happy it worked, but just for the sake of it: the plugin can handle structures up to three tiles high.
Original thread: https://forums.rpgmakerweb.com/threads/tall-characters-and-doorways.176215/