MV 2D Fixed Direction plugin help...

So I have characters that never face up or down. Up turns them left and down turns them right. to somewhat simulate a beat 'em up or something like it. problem comes in when I make certain movements and the character will turn the opposite direction while moving thanks to diagonal movement. basically they'll look like they're running backwards.

BUT... this plugin https://forums.rpgmakerweb.com/inde...ection-horizontal-vertical.68417/#post-717344 fixes that issue. but now there's another problem. I have a jumping mechanic where the player can jump up and down from platform to platform... except up and down don't work as normal.

basically all I want is the character's graphic to work like it does with this plugin, but still be able to use up or down when jumping. like before using the plugin, I could jump down to the lower platform. though it's odd because I can still "move" in all directions. but I can't hold up/down and jump up/down anymore.

snipping tool.PNG

the plugin itself seems really simple looking at it, but I dunno what the fix I'm needing is. but now I can only jump left or right and not up or down. if anyone know's a fix, I'd be grateful. or should I just event something like this since everything else works?
JavaScript:
(() => {

  var alias_Game_CharacterBase_jump = Game_CharacterBase.prototype.jump;
  Game_CharacterBase.prototype.jump = function(xPlus, yPlus) {
    this._jumpCount = 1;
    alias_Game_CharacterBase_jump.call(this, ...arguments);
  };

  var alias_Game_CharacterBase_setDirection = Game_CharacterBase.prototype.setDirection;
  Game_CharacterBase.prototype.setDirection = function(d) {
    if (Math.abs(d - 5) === 1 || this._jumpCount > 0) {
      alias_Game_CharacterBase_setDirection.call(this, ...arguments);
    }
  };

})();
hmm I saved this as a js file and put it in my game, but I'm not noticing any change. I feel I probably did something wrong on my end with that one though.
GgfR0um.gif

JavaScript:
//=============================================================================
// ** RPG Maker MV - DragonMV_FixedHorzDirection.js
//=============================================================================

var Dragon                        = Dragon                    || {};
Dragon.FixedHorzDirection         = Dragon.FixedHorzDirection || {};
Dragon.FixedHorzDirection.VERSION = [1, 0, 0];

/*:
 * @plugindesc Characters will only show their horizontal directions, except when jumping.
 * @author The Dragon (Jorge Feitosa) - http://dragonrefuge.net
 * @help This plugin does not provide plugin commands.
 */

(($) => {

  $.state = true;

  var alias_Game_CharacterBase_jump = Game_CharacterBase.prototype.jump;
  Game_CharacterBase.prototype.jump = function(xPlus, yPlus) {
    this._jumpCount = 1;
    this.__preJumpDirection = this._direction;
    alias_Game_CharacterBase_jump.call(this, ...arguments);
  };

  var alias_Game_CharacterBase_updateJump = Game_CharacterBase.prototype.updateJump;
  Game_CharacterBase.prototype.updateJump = function() {
    alias_Game_CharacterBase_updateJump.call(this, ...arguments);
    if ($.state && this.__preJumpDirection && this._jumpCount === 0 && Math.abs(this._direction - 5) === 3) {
      this._direction = this.__preJumpDirection;
    }
  };

  var alias_Game_CharacterBase_setDirection = Game_CharacterBase.prototype.setDirection;
  Game_CharacterBase.prototype.setDirection = function(d) {
    if ($.state && Math.abs(d - 5) === 3 && this._jumpCount === 0) {
      return;
    }
    alias_Game_CharacterBase_setDirection.call(this, ...arguments);
  };

})(Dragon.FixedHorzDirection);
I feel like this should be working, especially seeing the picture above, but it isn't. I'm wondering if it's because of the plugin I'm using for jumping. because I've turned off anything else that could be altering things. the directional part works, but I still can't jump up or down. I don't know if Yanfly's Smart Jump plugin is calling jumps in a weird way or what. how are you using jump in your instance above?
Must be Yanfly's plugin causing incompatibilities. But I believe that due to the licensing of its plugins, I won't be able to help much.
Try changing the order of the plugins.
I did and I even tried a different jump plugin and I'm getting the same results. this other jump plugin cued me in on something though. it plays a cancel sound when you can't jump. and whenever I tried jumping up or down, it'd play the cancel sound regardless of whether I could actually make a jump within said space. but it didn't when I went left or right and it'd let me jump. so I'm not really sure what's going on. I turned off all my plugins except a jump one and yours. also moved them around too to no avail.

still though, I appreciate the assistance so far. I'm just not sure why it isn't working.

Original thread: https://forums.rpgmakerweb.com/threads/2d-fixed-direction-plugin-help.140723/