[RPG Maker MV] Moving in a fixed direction?

Hello Hello !

I'm currently working on my RPG from RPG Maker MV, and I admit I haven't touched it for a long time, suddenly I think I'm a little rusty ...

So, in my game, I am currently working on a scene where the hero has a long fall.

Now to drop my character, I inserted a fixed direction downwards, but I would like the character to be able to continue to move during the fall despite the fact that I activated the fixed displacements in the window "adjust the trajectory of movement ".

But suddenly, my character can no longer move in a different direction than the bottom.
Do you think it is possible to be able to make my character go down without going up, BUT he can move diagonally to fall in a good direction?


I know my question is a bit complicated, but thanks anyway for your possible response><
Turning on Direction Fix does not change the player's ability to move the character in different directions - it just makes them face the one way while they move.

If your player is unable to move in any other direction at all, that's something different - I'd say either you've got an autorun event happening, which disables player input completely, or your "move down" due to the "fall" is done in a Move Route command that has Wait for Completion.

I did write a plugin for someone who wanted a minigame where the player was forced to move in a particular direction, to allow them to go "sideways" but continue in that direction. I'll have a hunt around and see if I can find it.

Edit: Okay, it was here:

Here is the plugin, altered for a forced downward movement. Save it in your plugins folder as Shaz_AutoDown.js, and in the plugin manager, set the switch ID to be an available switch number (no leading zeros). Then in your game, give that switch a name so you don't use it for anything else, and turn it on when you want to force the downwards movement.

Code:
/*:
* @plugindesc Auto Down (Shaz_AutoDown.js)
* @author Shaz
*
* @help This plugin does not provide plugin commands.
*
* This plugin allows you to nominate a switch, which, when ON,
* forces the player to move DOWN and disables the UP key.
*
* @param Switch ID
* @desc When ON, forces downwards movement
* @default 1
*/

(function() {
    function toNumber(str, def) {
        return isNaN(str) ? def : +(str || def);
    }

    var parameters = PluginManager.parameters('Shaz_AutoDown.js');
    var forceDownSwitch = toNumber(parameters['Switch ID'], 1);

    var _Shaz_AutoDown_Game_Player_moveByInput = Game_Player.prototype.moveByInput;
    Game_Player.prototype.moveByInput = function() {
        if (!$gameSwitches.value(forceDownSwitch)) {
            _Shaz_AutoDown_Game_Player_moveByInput.call(this);
        } else {
            if (!this.isMoving() && this.canMove()) {
                var direction = this.getInputDirection();
                $gameTemp.clearDestination();
                switch(direction) {
                    case 4:
                        this.moveDiagonally(4, 2);
                        break;
                    case 6:
                        this.moveDiagonally(6, 2);
                        break;
                    default:
                        this.moveStraight(2);
                }
            }
        }
    };

})();
Well ! It works !

To be honest, not immediately, I was mostly used to VX Ace which had a scripting system at the time, and I admit that I didn't really know how to make a file in javascript, but it's with your another version of the Shaz_AutoUp.js plugin that I understood how it worked. Because with ShazAutoDown.js, I couldn't make it work but now it works !

I have not yet done a concrete test on what I want to do visually with my fall, but since I use another plugin to make the game in 3D, your help will be able to allow me to have a similar rendering to this:
Spoiler
test.PNG
I think I still have a lot to learn because a lot seems to have changed since the version I have known in the past... But in any case thank you very much ! You save my life !
I have no idea how to make it render a certain way. Do you mean you want the character to have their arms and legs all spread out? Just do a Change Actor Graphic/Sprite command before the move route to make them fall, and another at the end of the fall to change it back to the walking graphic.

If you called the plugin ShazAutoDown.js it won't work, because you're supposed to call it Shaz_AutoDown.js, as I said in the post above. The name is important. Getting it wrong will make the plugin act as if it's not even there.
I know, it was just a typo on my part (and my great lack of sleep), for the fact of how to put my arms up, don't worry, I know how I'm going to manage and that will be fair a sprite creation story when I take care of all the basic sprites! It was just a matter of showing what I intended to do, but it seems to work whether it is to move forward or backward, thank you very much !



To explain what I intend to do, here is a visual of the game currently:
fdk,glkfdg.PNG



And by moving the camera and doing a little elevated sprite, I would make an optical illusion so that we have the impression that the floor is a wall !
Nice looking screenshot! What's the 3D script you're using?
I hope the plugin does what you need.
I use MV3D which uses two plugins and textures in addition, it's not super easy to take in hand at the moment since the interface for creating the map is the same since the modification is done in a 2D view . But here is the link from where I found the plugin:

I have no idea how to make it render a certain way. Do you mean you want the character to have their arms and legs all spread out? Just do a Change Actor Graphic/Sprite command before the move route to make them fall, and another at the end of the fall to change it back to the walking graphic.

If you called the plugin ShazAutoDown.js it won't work, because you're supposed to call it Shaz_AutoDown.js, as I said in the post above. The name is important. Getting it wrong will make the plugin act as if it's not even there.
I tried using this plugin recently. It seems to work when the switch is set to number 1, but not when it's a bigger number like 186.
@LeetMusic , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mv-moving-in-a-fixed-direction.120795/