Unreal Engine 5 Tips: How to reduce Backward Movement Speed through Input Mapping Context

In character movement setups, forward and backward movement are usually handled through the same move input action. But sometimes, the design requires backward movement speed to be slower than the forward movement speed.

Since the movement input is coming through Enhanced Input, we can handle this directly in the Input Mapping Context. The Input Mapping Context is not just for binding keys, it also gives us a place to modify the input values before they reach the input action.

In the default third person template setup, the move input action already uses Swizzle Axis and Negate so W and S feed into the Y axis correctly. To slow down backward movement, we can simply add a Scalar modifier on the S mapping.

As shown in the screenshot below, we can set the Scalar value to something like 0.5, which essentially means that pressing S no longer outputs a full -1 on the Y axis.

Instead, in this case, the input action receives a smaller value like -0.5, which results in a 50% reduced backward movement speed without adding any extra checks or branching in blueprints.

Comments