# How to get 2 fixed speeds with analog stick?

**URL:** <https://forums.unrealengine.com/t/how-to-get-2-fixed-speeds-with-analog-stick/1591311>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [January 5, 2024, 8:48pm UTC](https://forums.unrealengine.com/t/how-to-get-2-fixed-speeds-with-analog-stick/1591311 "2024-01-05T20:48:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faze\_Kaas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Faze\_Kaas](https://forums.unrealengine.com/u/Faze_Kaas)\
**Post date:** [January 5, 2024, 8:48pm UTC](https://forums.unrealengine.com/t/how-to-get-2-fixed-speeds-with-analog-stick/1591311/1 "2024-01-05T20:48:49Z")

</div>

Hey, I’m trying to have walking and running speed in two fixed states with the analog stick. So that when the left analog stick is turned a little bit in a direction the character will walk in a constant speed, and when the left analog stick is turned a lot, my character is running in a constant speed. I have it working but only on 4 directions, I would like to have it diagonal (and any direction) as well, what’s the best way to do this?  
Thanks! 🙂

---

<div class="post-metadata">

**Author:** ![M-Form](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/m-form/32/1194174_2.png) [@M-Form](https://forums.unrealengine.com/u/M-Form)\
**Post date:** [August 2, 2026, 1:40pm UTC](https://forums.unrealengine.com/t/how-to-get-2-fixed-speeds-with-analog-stick/1591311/2 "2026-08-02T13:40:50Z")

</div>

you could stack a scalar and deadzone in your input mapping context, or make your own custom input modifier that uses something like the “map range clamped” node plus an essential deadzone.

---

<div class="post-metadata">

**Author:** ![illspiritx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illspiritx](https://forums.unrealengine.com/u/illspiritx)\
**Post date:** [August 3, 2026, 1:36am UTC](https://forums.unrealengine.com/t/how-to-get-2-fixed-speeds-with-analog-stick/1591311/3 "2026-08-03T01:36:33Z")

</div>

Honestly, you’re probably better off having a button to press which calls a function callled “toggle walk” or some such that just sets the max walk speed with a flip-flop or something. Scaling axis input is always a pain, and can easily end up with diagonal movement being twice as fast if you just clamp the axii or whatever. IE, if you clamp x and y to 0.5, you still end up with a final vector length of 1 (full speed) going into add move input.
