MV I'm running into a few problems in Cross Engine...

Cross Engine, Mog Hunter's Chrono Engine and Altimit Movement...


Problems I'm having

1. This is the main problem:
When the player gets attacked by an enemy with this.touchDamage(true) its very clunky.

I've been looking everywhere in the code for what makes the player get knocked back when it, can't find it. It probably is still knocking the player back but I want to increase the distance or decrease the time because Altimit Movement updates so frequently its probably stopping it too soon so it makes it seem like the character doesn't move and the controls just don't work for nearly a second. It feels pretty bad to just stand there with the controls not working, like every attack stunlocks you (Even though you get invincibility frames during it).

It does look like the Cross Engine Developer was having issues with determining if the player was moving too, according to his comments in the code:

Code:
Game_Chrono.prototype.executeTouchDamage = function(user,target) {
    //added these because I think that enemies should do an attack pose when attacking
    //if you don't have the pose it just fails silently no biggie
    if (user.hasMeleePose==undefined)
    {
        if(!Imported.MOG_CharPoses)
        {
            user.hasMeleePose=false;
        }else{
            var meleePose=user.doesPoseExist('_melee')
            user.hasMeleePose=meleePose;
        }
    }else{
        var meleePose=user.hasMeleePose
    }
    
    if (meleePose)
    {
        var fullFileName=user._originalName.name+meleePose
        var frames = fullFileName.match(/(\(F(\d+\.*\d*))/gi)
        //if we have custom frames, count them
        //otherwise default to 3
        
        if(frames)
        {
            frames = Number(frames[frames.length-1].match(/\d+/i)) 
        }else{
            frames=3;
        }
        var sp = fullFileName.match(/(\(S(\d+\.*\d*))/gi) || "(s0)".match(/(\(S(\d+\.*\d*))/gi)
        sp = Number(sp[sp.length-1].match(/\d+/i)) ||0;
        //we have frames and speed, so make the pose last as long as the melee pose does
        //'Cycle' is what I'm calling one 60th of a second here because we also
        //have animation frames.
        var animationCountPerCycle = (sp +1)* (1 + 0.5 * (user._inMotion && user.hasWalkAnime())) 
        
        var cyclesPerFrame = Math.ceil(user.animationWait()/animationCountPerCycle)
        
        
        user.battler()._ras.poseDuration = cyclesPerFrame*frames;
        //console.log(cyclesPerFrame*frames)
        user.battler()._ras.poseSuffix = meleePose;
        
        //stop it for a sec to attack you
        user.jump(0,0)
    }
    
    if (target.battler()._ras.collisionD > 0) {return};
    if (this.isGuardingDirectionTouch(user,target)) {
        this.executeGuardTouch(user,target);
        return
    };
    var subject = user.battler(); 
    var action = new Game_Action(subject);
    action.setAbsSubject(subject)
    var oldHP = target.battler()._hp;   
    var coop = [];
    var skillId = user.battler().attackSkillId();
    action.setSkill(skillId);
    action.applyCN(target.battler(),coop);
    target.battler().startDamagePopup();    
    target.battler()._ras.collisionD = 60;//temp invulnerability for a full second
    if (oldHP > target.battler()._hp) {
        this.executeTouchTouchAfterHit(user,target,skillId);
    };
};


var Game_CharacterBase_update_for_damage = Game_CharacterBase.prototype.update;
  Game_CharacterBase.prototype.update = function() {
    //.isMoving doesn't really work in altimit
    // this fixes it with the addition of a new property which I can use to tell
    // if the character is actually like, moving
    // the problem seems to be that the isMoving gets cleared midway through
    // this update step (because the .updateMove in rpg_objects sets ._realX to equal .x)
    // but lots of things break if I monkey around with _isMoving
    // so I'm creating my own clone of it here.
    // this is true if the character is in motion and false if they aren't.
    // if you need to adapt any code that references .isMoving(), now you know
    // how to fix it!
    if (this.isMoving())
    {
      this._inMotion=true;
    }else{
      this._inMotion=false;
    }
      
    Game_CharacterBase_update_for_damage.call( this );
    //adding in touch damage for all movement, if applicable.
    //first I'm checking to see if it CAN deal touchdamage
    //note that I ASSUME here that touch damage can only be dealt
    //to the player, and not to monsters.
    //this means i don't have to check every entity.
    if (this._user.touchDamage)
    {
        
        if (this.canTouchTarget($gamePlayer)) 
        {
            $gameChrono.executeTouchDamage(this,$gamePlayer) 
        };
    }
  };




//==============================
// * Update Set Pose - edited to fix idle altimit compatibility
//==============================
Game_CharacterBase.prototype.updateSetPose = function() {
    if (this._inMotion || this._moveTarget) {this._poses.idle[1] = this._poses.idle[2]};
    this._poses.actionMode[0] = false;
    if (this._poses.dash[1] > 0) {
        if (this.isDashingPose()) {this._poses.dash[1] = 3};        
        this._poses.dash[1]--;
        return  
    };
    if (! ( !CrossEngine.idleMessage && $gameMessage.isBusy()))
    {
        if (this._poses.idle[1] > 0) {this._poses.idle[1]--};
    }
    var charName = this._characterName;
    this._characterName = this.setPose();
    if (this._poses.actionMode[0] != this._poses.actionMode[1]) {this.refreshActionMode()};
    if (charName != this._characterName) {this.refreshNewPose()};
};




//FIXING THE BROKEN .isMoving(), replacing it with the ._inMotion
//==============================
// * update Force Movement Ras
//==============================
Game_CharacterBase.prototype.updateForceMovementRas = function() {
    this._through = false;
    this._moveSpeed = 3;
    this._directionFix = false;
    if (this._user.isPlayer) {$gamePlayer._moveSpeed = 3};
    var x = this._chrono.nextX;
    var y = this._chrono.nextY;
    direction = this.findDirectionTo(x, y);
    $gameSystem._chronoMode.phaseDuration = this._moveSpeed < 5 ? 40 : 30;
    if (direction > 0) {this.moveStraight(direction)};
        if (!this._inMotion) {
            var preX = this._chrono.nextX;
            var preY = this._chrono.nextY;
            this._chrono.nextX = null;   
            this._chrono.nextY = null;   
            this._moveSpeed = this._chrono.premapMoveSpeed;
            if (this._user.isPlayer) {$gamePlayer._moveSpeed = $gamePlayer._chrono.premapMoveSpeed};
            if ($gameChrono.phase() === 1) {
                this._chrono.orgX = this._x;
                this._chrono.orgY = this._y;
                var ftarget = $gameChrono.setFirstTarget(this);
                if (ftarget) {this._chrono.target = ftarget};
                if (this._chrono.dir > 0) {
                   this.setDirection(this._chrono.dir);
                } else {
                    if (this.distanceToPoint(preX , preY)>0.5) {
                        this.turnTowardCharacter(this._chrono.target);
                    } else {
                        if (this._chrono.target) {
                               this.turnTowardCharacter(this._chrono.target);
                        } else {
                            this.setDirection($gamePlayer._direction);
                        };
                    };
                };
            } else {
                $gameSystem._chronoMode.phase = 10;
                this.turnTowardCharacter($gamePlayer);
                this._through = true;
                this._moveSpeed = $gamePlayer._moveSpeed;
                this._direction = this._chrono.premapD;               
            };
        };
};
//FIXING THE BROKEN .isMoving(), replacing it with the ._inMotion
//==============================
// * load Battle Parameters
//==============================
Game_Chrono.prototype.loadCharacterParameters = function(direction) {
    for (var i = 0; i < $gameMap.players().length; i++) {
         var character = $gameMap.players()[i];
         var oldX = character._x;
         var oldY = character._y;
         character.loadOrgParameters(direction);
         if (oldX != character._x || oldY != character._y || character._inMotion) {
            character.jump(0,0)     
         };         
    };
    for (var i = 0; i < $gameMap.enemiesF().length; i++) {
         var character = $gameMap.enemiesF()[i];
         var oldX = character._x;
         var oldY = character._y;     
         if (!character.battler().isDead()) {
             var mov = character._inMotion
             character.loadOrgParameters(direction);
             if (character._inMotion && !mov) {
                character.jump(0,0)     
             };                     
         };
    };   
};

//FIXING THE BROKEN .isMoving(), replacing it with the ._inMotion
//==============================
// * update Move ToTarget
//==============================
Game_Chrono.prototype.updateMoveToTargetCN = function(char,battler) {
    if (!char._inMotion && !char.isJumping()) {battler._chrono.actionPhase = 2};
};

//FIXING THE BROKEN .isMoving(), replacing it with the ._inMotion
//==============================
// * update Move Back CN
//==============================
Game_Chrono.prototype.updateMoveBackCN = function(char,battler) {
    if (!char._inMotion && !char.isJumping()) {battler._chrono.actionPhase = 7};
};


//==============================
// * Update Crono
//==============================
Game_CharacterBase.prototype.updateChrono = function() {
    if (this._chrono.nextX != null) {
        if (!this._inMotion) {this.updateForceMovementRas()};
    };
};



//if we want to have separate poses for moving and firing vs just moving
//tag it as (walking) in the filename for the walking version.
//note that htis can end up with filenames like
// $Character(y24)(d8)(8ccw)(f4)_Fire(s1)(walking)_static(f1)
//and we will all have to live with it
Game_CharacterBase.prototype.setFlexibleStandPose = function(myPose)
{
    if (myPose.contains('(walking)'))
    {
        if (!this._inMotion)
        {
            return myPose+"_static"
            };
    }
    return myPose
    
}




2. Using GALV_MapAnimEffects with Altimit Movement makes the animations play too much
I Tried using GALV_MapAnimEffects but Altimit Movement makes the animation play so fast it just blurs. Would be nice to be able to put a delay on it, I tried making empty frames but that just makes it look like a dashed line since the animations only stop entirely and when they play they are just stacked on top of each other.



3. Random Skills Going Off
(This one isn't so bad, still annoying though)
Skills from the Tool Map randomly go off when the game starts (and don't stop until whatever they use [mp/tp] gets to 0)
I've been deleting them as it happens, then it stops happening for a few test plays then it starts with another skill from the Tool Map, these seem to be in some type of order though (For instance, It was originally Thunder II until I deleted it, then it was Meteor, until I deleted it, then it was Rain Arrow, until I deleted it, now its the Fireball from the engine, which I've been dealing with because it only goes off once and its quick enough that it doesn't get in my way) I want to get rid of all the built in skills eventually but at the moment I'd like to have them as reference. I'm also afraid that if I delete them then my own skills will start being played randomly too. - I've not started looking into this at all, just seeing if anyone had this problem before and how they fixed it.

Original thread: https://forums.rpgmakerweb.com/threads/im-running-into-a-few-problems-in-cross-engine.166038/