Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Rather than disabling it entire, I was wondering about using a Plugin Command to either choose which direction is which, or make it so up/down/right/left are always cardinal directions, without losing diagonal functionality.

As it is now works for what I want, but it limits the angle at which I can put the camera while keeping the controls coherent for the player.

Altimit Movement sort of does what I want, but that plug in is sort of a buggy mess and seemingly no longer in development.

I don't think there's a built-in feature that does what you're asking, but by modifying this function I think I was able to get the behavior you're asking for. It makes it so inputs are always in cardinal directions unless you're pushing more than one direction.

mv3d.getInputDirection=function(){
    let dir = mv3d.DIR8MOVE ? Input.dir8 : Input.dir4;
    let yaw = mv3d.blendCameraYaw.currentValue();
    yaw=Math.round(yaw/90)*90;
    return mv3d.transformDirection(dir,yaw);
}

You can load the script as a plugin after mv3d.

Qmovement is also available as an alternative to Altimit movement, if you want to try that.

QMovement also has the same problem(also a weird bug if you go diagonal on slopes), however, this did exactly as I wanted, I really appreciate it, thanks!