# How to make sprite not move diagonally

**URL:** <https://forum.makecode.com/t/how-to-make-sprite-not-move-diagonally/33604>\
**Category:** Help\
**Created:** [February 4, 2025, 6:24pm UTC](https://forum.makecode.com/t/how-to-make-sprite-not-move-diagonally/33604 "2025-02-04T18:24:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ItzWolfeel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/itzwolfeel/32/25239_2.png) [@ItzWolfeel](https://forum.makecode.com/u/ItzWolfeel)\
**Post date:** [February 4, 2025, 6:24pm UTC](https://forum.makecode.com/t/how-to-make-sprite-not-move-diagonally/33604/1 "2025-02-04T18:24:44Z")

</div>

I’m trying to use the “Move sprite with buttons” and I need a way to not make it move diagonally, I tried the Grid extension but the “Move sprite on grid” Doesn’t work at all. Any ideas?

---

<div class="post-metadata">

**Author:** ![Justasmallcoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/justasmallcoder/32/24428_2.png) [@Justasmallcoder](https://forum.makecode.com/u/Justasmallcoder)\
**Post date:** [February 4, 2025, 11:58pm UTC](https://forum.makecode.com/t/how-to-make-sprite-not-move-diagonally/33604/2 "2025-02-04T23:58:18Z")

</div>

You can do something like this —\> [https://makecode.com/\_fXxX7C8x79Tq](https://makecode.com/_fXxX7C8x79Tq)

---

<div class="post-metadata">

**Author:** ![ItzWolfeel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/itzwolfeel/32/25239_2.png) [@ItzWolfeel](https://forum.makecode.com/u/ItzWolfeel)\
**Post date:** [February 11, 2025, 6:12pm UTC](https://forum.makecode.com/t/how-to-make-sprite-not-move-diagonally/33604/3 "2025-02-11T18:12:15Z")

</div>

Thanks! I think that’ll work, just a few tweaks I’d like to make. Thanks!
