Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Hi there, I'm pretty much in love with this project, but I do have one question.

Is there any way to 'lock' the movement direction?

I'm making heavy use of Camera angles in my game, and it generally looks great.  However, sometimes, when going into a side area, and the camera turns to follow the player's movement, the games directions automatically shift so that 'left' is now 'diagonal'.  

While I'm actually fine with this in general, it'd be nice if, while the player holds down the movement button, they wouldn't be affected by the direction change.

Similar to Final Fantasy X when the camera changes at certain points.

Or even just disable it on certain maps, so on this map, up always goes this direction, but on a different map, up always goes that direction.

Sorry for the long comment, thanks!

Hi, sorry for the late response. If I understard, you want to disable the feature that changes the input direction to match the camera orientation? I don't think I've implemented an option yet to disable this. However, I think some plugins that change input sometimes might break this depending on the load order, so you could potentially mess with that.
Another possible solution is to disable diagonal movement when you're in the side areas. You can do this using the following plugin command
mv3d set diagonalMovement false

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!