# How do I use mouse extension

**URL:** <https://forum.makecode.com/t/how-do-i-use-mouse-extension/7288>\
**Category:** Help\
**Created:** [April 9, 2021, 9:15pm UTC](https://forum.makecode.com/t/how-do-i-use-mouse-extension/7288 "2021-04-09T21:15:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandodon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brandodon/32/3625_2.png) [@brandodon](https://forum.makecode.com/u/brandodon)\
**Post date:** [April 9, 2021, 9:15pm UTC](https://forum.makecode.com/t/how-do-i-use-mouse-extension/7288/1 "2021-04-09T21:15:36Z")

</div>

I’m trying to make a game that uses at least some kind of mouse mechanic. How do I do this?

---

<div class="post-metadata">

**Author:** ![ImaAngryBear](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/imaangrybear/32/3834_2.png) [@ImaAngryBear](https://forum.makecode.com/u/ImaAngryBear)\
**Post date:** [April 9, 2021, 10:03pm UTC](https://forum.makecode.com/t/how-do-i-use-mouse-extension/7288/2 "2021-04-09T22:03:22Z")

</div>

I have not used it. I wish I can help!

---

<div class="post-metadata">

**Author:** ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)\
**Post date:** [April 11, 2021, 8:35pm UTC](https://forum.makecode.com/t/how-do-i-use-mouse-extension/7288/3 "2021-04-11T20:35:38Z")

</div>

If you want to make a moveable mouse then just make a sprite and make it moveable! Then you can (If you want) make a collider! Make a 1\*1 sprite which is positioned at the tip of the mouse! Then make a game update where it sets the collider sprite x and y to the mouse (Dont forget the offset (so for example set collider x ((sprite x) + (3) )  
Done! Hope this helps

---

<div class="post-metadata">

**Author:** ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)\
**Post date:** [April 12, 2021, 2:54pm UTC](https://forum.makecode.com/t/how-do-i-use-mouse-extension/7288/4 "2021-04-12T14:54:17Z")

</div>

The mouse extension can make your hardware (Like meowbit) a mouse! (As far as I know)

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [April 12, 2021, 2:54pm UTC](https://forum.makecode.com/t/how-do-i-use-mouse-extension/7288/5 "2021-04-12T14:54:43Z")

</div>

What DahbixLP said is a good idea, I’ve done it many times very well! But instead of manually figuring out the offset, what you could do is set the top and the left of the collider to the top and the left of the cursor so you don’t have to figure out of the offset!

---

<div class="post-metadata">

**Author:** ![brandodon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brandodon/32/3625_2.png) [@brandodon](https://forum.makecode.com/u/brandodon)\
**Post date:** [April 12, 2021, 3:07pm UTC](https://forum.makecode.com/t/how-do-i-use-mouse-extension/7288/6 "2021-04-12T15:07:56Z")

</div>

im not smart enough to understand what you are saying

---

<div class="post-metadata">

**Author:** ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)\
**Post date:** [April 12, 2021, 4:24pm UTC](https://forum.makecode.com/t/how-do-i-use-mouse-extension/7288/7 "2021-04-12T16:24:35Z")

</div>

I made 2 examples!  
This one uses a trick! But make sure you sometimes reset the positions!

> **[Mouse1](https://arcade.makecode.com/07797-44382-03219-45617)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Here is the one I was talking about!

> **[Mouse2](https://arcade.makecode.com/94221-60227-70231-64093)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Hope this helps!
