# 2D top down - Disable diagonal movement

**URL:** <https://forums.unrealengine.com/t/2d-top-down-disable-diagonal-movement/383541>\
**Category:** Character & Animation\
**Tags:** unreal-engine, top-down, question\
**Created:** [January 31, 2017, 9:58pm UTC](https://forums.unrealengine.com/t/2d-top-down-disable-diagonal-movement/383541 "2017-01-31T21:58:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryscale](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryscale](https://forums.unrealengine.com/u/Ryscale)\
**Post date:** [January 31, 2017, 9:58pm UTC](https://forums.unrealengine.com/t/2d-top-down-disable-diagonal-movement/383541/1 "2017-01-31T21:58:27Z")

</div>

Just as the title says. was wondering how I can disable two buttons from being pressed at the same time making the character move diagonal? tried using bool’s to counter measure it but It didn’t go as planned 🙂

Thank you!

Ryscale

---

<div class="post-metadata">

**Author:** ![rocketeatsburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rocketeatsburger](https://forums.unrealengine.com/u/rocketeatsburger)\
**Post date:** [March 15, 2025, 3:36pm UTC](https://forums.unrealengine.com/t/2d-top-down-disable-diagonal-movement/383541/2 "2025-03-15T15:36:27Z")

</div>

Someone please answer this thread I beg
