# How to implement strafing, diagonal movement, and step limiters

**URL:** <https://forums.unrealengine.com/t/how-to-implement-strafing-diagonal-movement-and-step-limiters/324927>\
**Category:** Character & Animation\
**Tags:** UE4-8, unreal-engine, question, Blueprint\
**Created:** [July 12, 2015, 2:44am UTC](https://forums.unrealengine.com/t/how-to-implement-strafing-diagonal-movement-and-step-limiters/324927 "2015-07-12T02:44:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Strategos2000\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Strategos2000\_1](https://forums.unrealengine.com/u/Strategos2000_1)\
**Post date:** [July 12, 2015, 2:44am UTC](https://forums.unrealengine.com/t/how-to-implement-strafing-diagonal-movement-and-step-limiters/324927/1 "2015-07-12T02:44:04Z")

</div>

I have a few questions concerning how to program some of my ideas for a movement system into a project and would appreciate your help.  
Firstly, I would like to be able to switch the current side movement system (third person blueprint) to a strafing system, as is common in most FPS games.  
Secondly, I would like to know how to make a diagonal movement option (I will be using w, e, r, s, d, f, z, and v as my movement keys).  
Finally, I would like to know how to limit all movements except forward to one step per time the respective key is depressed.  
Is this possible? If so, how do I do it? Thank you in advance for any help you can give me.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bd2648711](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bd2648711](https://forums.unrealengine.com/u/anonymous_user_bd2648711)\
**Post date:** [September 5, 2017, 2:22pm UTC](https://forums.unrealengine.com/t/how-to-implement-strafing-diagonal-movement-and-step-limiters/324927/2 "2017-09-05T14:22:39Z")

</div>

I can provide suggestion regarding limiting movement to one step per time the respective key is depressed:

- Add a branch with condition ‘Is Button X pressed’ for every movement buton with respective buton instead of X and make the boolean value change to ‘true’ every time the buton is pressed, then change to ‘false’ when it is released. Continue input effect along ‘false’ branching path.
- At the end of input effect of every buton add boolean state change to ‘true’ for as long as it’s held

I hope that helps

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bd2648711](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bd2648711](https://forums.unrealengine.com/u/anonymous_user_bd2648711)\
**Post date:** [September 5, 2017, 2:22pm UTC](https://forums.unrealengine.com/t/how-to-implement-strafing-diagonal-movement-and-step-limiters/324927/3 "2017-09-05T14:22:50Z")

</div>

I can provide suggestion regarding limiting movement to one step per time the respective key is depressed:

- Add a branch with condition ‘Is Button X pressed’ for every movement buton with respective buton instead of X and make the boolean value change to ‘true’ every time the buton is pressed, then change to ‘false’ when it is released. Continue input effect along ‘false’ branching path.
- At the end of input effect of every buton add boolean state change to ‘true’ for as long as it’s held

I hope that helps
