MV [SOLVED] QMovement: change the angle of diagonal movement?

Hi there, I need some help with the QMovement Plugin.
Aside stuff like free (pixel-) movement, there is the option for diagonal movement, that I use for my game.
The diagonal movement is in a 45° angle (obviously).

But for my game I need an angle of ~22,5° because I create everything in an isometric view - so the ground appears to be wider on the x axis than it is on the y axis.
Qmovement_diagonal_angle.png

Is there an easy way to do this?

I searched the JS-file of the plugin for diagonal stuff and found these codes, but because I'm not so deep into JS, I can barely understand half of what is in there ^^"
qmove1.jpg

qmove2.jpg

qmove3.jpg

qmove4.jpg

qmove5.jpg
Do you have the player's vertical speed slower than horizontal? Because if not, I think doing so would also effectively change that angle (since changing the x and y coordinates happens separately), and would probably help sell the perspective.

If not, you'd probably need to slow down vertical movement only when moving horizontally, which might feel a bit weird to control.
I have the left-right speed at 4.2
top-down at 3.6
and diagonal at 3.4
(I use 250p tall sprites, so the numbers are quite high)

So from the speed there is already the illusion of perspective.
But when moving diagonal it looks like permanently sliding slightly to the side.
Ok, I think I've got it. So it does actually move along a specific angle - the simplest way will probably be to modify directionToRadianfrom QPlus. Try this (below QPlus):

JavaScript:
  Game_CharacterBase.prototype.directionToRadian = function (dir) {
    dir = dir || this._direction;
    if (dir === 2) return Math.PI / 2;
    if (dir === 4) return Math.PI;
    if (dir === 6) return 0;
    if (dir === 8) return Math.PI * 3 / 2;
    if (dir === 1) return Math.PI * 3.5 / 4; //Originally 3
    if (dir === 3) return Math.PI * 0.5 / 4; //Originally 1
    if (dir === 7) return Math.PI * 4.5 / 4; //Originally 5
    if (dir === 9) return Math.PI * 7.5 / 4; //Originally 7
    return 0;
  };
Hm. I tried these values in Qplus and tried even other extreme values, but they seem to have no effect on this. But the "dir" numbers are the correct ones, so they are for the diagonal directions, but somehow it still ends up like this:
diagonal_walk2b.gif

It should follow more or less the red line (or at least any other angle), but the chara still moves in a perfect 45° angle on the orange line when I press [down]+[<--]
Ok, I'm a bit confused about what that _forwardRadian is for then, but I guess it's not that. Another thing worth trying might be modifying the distance values in moveDiagonally (keep the previous change too just in case):

JavaScript:
Game_CharacterBase.prototype.moveDiagonally = function(horz, vert, dist) {
    dist = dist || this.moveTiles();
    this.setMovementSuccess(this.canPixelPassDiagonally(this._px, this._py, horz, vert, dist));
    var originalSpeed = this._moveSpeed;
    if (this.smartMove() === 1 || this.smartMove() > 2) {
      this.smartMoveSpeed([horz, vert]);
    }
    this.setDirection(this.direction8(horz, vert));
    if (this.isMovementSucceeded()) {
      this._forwardRadian = this.directionToRadian(this.direction8(horz, vert));
      this._adjustFrameSpeed = false;
      this._px = $gameMap.roundPXWithDirection(this._px, horz, dist);
      this._py = $gameMap.roundPYWithDirection(this._py, vert, dist/2);
      this._realPX = $gameMap.pxWithDirection(this._px, this.reverseDir(horz), dist);
      this._realPY = $gameMap.pyWithDirection(this._py, this.reverseDir(vert), dist/2);
      this.increaseSteps();
    } else {
      this.checkEventTriggerTouchFront(this.direction8(horz, vert));
    }
    this._moveSpeed = originalSpeed;
    if (!this.isMovementSucceeded() && this.smartMove() > 1) {
      if (this.canPixelPass(this._px, this._py, horz)) {
        this.moveStraight(horz);
      } else if (this.canPixelPass(this._px, this._py, vert)) {
        this.moveStraight(vert, dist/2);
      }
    }
  };
YESSS!
Thats it!

You really made my day xD
I was wondering about this issue for weeks but now it became crucial for the further process. And simply the "/2" in these two lines solved it. Now everything is aligned with the perspective.

Thank you. I would have never found the right code lines on my own^^
This thread is being solved due to being solved. If you need it reopened, report it to let us know why. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/solved-qmovement-change-the-angle-of-diagonal-movement.166972/