# Controller movement

**URL:** <https://forum.makecode.com/t/controller-movement/27898>\
**Category:** Arcade\
**Created:** [March 22, 2024, 10:25pm UTC](https://forum.makecode.com/t/controller-movement/27898 "2024-03-22T22:25:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BioShrimpCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bioshrimpcoding/32/13238_2.png) [@BioShrimpCoding](https://forum.makecode.com/u/BioShrimpCoding)\
**Post date:** [March 22, 2024, 10:25pm UTC](https://forum.makecode.com/t/controller-movement/27898/1 "2024-03-22T22:25:15Z")

</div>

Could someone make me an extension that has a block that is

controller\_moveSprite( Sprite: Sprite, Boolean: True/False, VX/VY: Number)

the true and false is for enabling movement and disabling it

and if someone can teach me on how to make one that would be cool.

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [March 23, 2024, 12:18am UTC](https://forum.makecode.com/t/controller-movement/27898/2 "2024-03-23T00:18:32Z")

</div>

> **[Function](https://arcade.makecode.com/S41570-08111-09278-59535)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

You can just use a function  
tbh you don’t even need a bool parameter, just set the VX and VY to 0

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [March 23, 2024, 12:20am UTC](https://forum.makecode.com/t/controller-movement/27898/3 "2024-03-23T00:20:37Z")

</div>

I might be confused, but isn’t this just the set velocity x and y?

---

<div class="post-metadata">

**Author:** ![BioShrimpCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bioshrimpcoding/32/13238_2.png) [@BioShrimpCoding](https://forum.makecode.com/u/BioShrimpCoding)\
**Post date:** [March 26, 2024, 12:31pm UTC](https://forum.makecode.com/t/controller-movement/27898/4 "2024-03-26T12:31:16Z")

</div>

Thanks that helps alot!!!
