# How do I cancel the “Move with buttons” block?

**URL:** <https://forum.makecode.com/t/how-do-i-cancel-the-move-with-buttons-block/27874>\
**Category:** Help\
**Created:** [March 21, 2024, 4:45pm UTC](https://forum.makecode.com/t/how-do-i-cancel-the-move-with-buttons-block/27874 "2024-03-21T16:45:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![1010277](https://avatars.discourse-cdn.com/v4/letter/1/87869e/32.png) [@1010277](https://forum.makecode.com/u/1010277)\
**Post date:** [March 21, 2024, 4:45pm UTC](https://forum.makecode.com/t/how-do-i-cancel-the-move-with-buttons-block/27874/1 "2024-03-21T16:45:20Z")

</div>

I am making a baseball game, and I need movement to stop when I reach home. Can you help me?

---

<div class="post-metadata">

**Author:** ![robotosaurus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robotosaurus/32/19294_2.png) [@robotosaurus](https://forum.makecode.com/u/robotosaurus)\
**Post date:** [March 21, 2024, 5:30pm UTC](https://forum.makecode.com/t/how-do-i-cancel-the-move-with-buttons-block/27874/2 "2024-03-21T17:30:53Z")

</div>

Just use the block again but with the input values set to zero.

---

<div class="post-metadata">

**Author:** ![Jedi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jedi/32/14307_2.png) [@Jedi](https://forum.makecode.com/u/Jedi)\
**Post date:** [March 21, 2024, 5:31pm UTC](https://forum.makecode.com/t/how-do-i-cancel-the-move-with-buttons-block/27874/3 "2024-03-21T17:31:00Z")

</div>

just use a move my sprite with buttons block and set vx and vy to 0

---

<div class="post-metadata">

**Author:** ![BoostedGames](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/boostedgames/32/29419_2.png) [@BoostedGames](https://forum.makecode.com/u/BoostedGames)\
**Post date:** [March 21, 2024, 5:31pm UTC](https://forum.makecode.com/t/how-do-i-cancel-the-move-with-buttons-block/27874/4 "2024-03-21T17:31:07Z")

</div>

put a “Move with buttons” block for when you hit home and then set x and y to 0.

---

<div class="post-metadata">

**Author:** ![1010277](https://avatars.discourse-cdn.com/v4/letter/1/87869e/32.png) [@1010277](https://forum.makecode.com/u/1010277)\
**Post date:** [March 25, 2024, 6:33pm UTC](https://forum.makecode.com/t/how-do-i-cancel-the-move-with-buttons-block/27874/5 "2024-03-25T18:33:57Z")

</div>

Thank you very much!
