# HELP please I NEED help

**URL:** https://forum.makecode.com/t/help-please-i-need-help/45013
**Category:** Help
**Created:** [July 21, 2026, 12:02am UTC](https://forum.makecode.com/t/help-please-i-need-help/45013 "2026-07-21T00:02:35Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![adicat](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@adicat](https://forum.makecode.com/u/adicat)
#### Post date: [July 21, 2026, 12:02am UTC](https://forum.makecode.com/t/help-please-i-need-help/45013/1 "2026-07-21T00:02:35Z")

</div>

I am making a game and I want the player to be able to move their mouse around and when they click, a projectile goes towards the direction of where you clicked. please help

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [July 21, 2026, 5:12am UTC](https://forum.makecode.com/t/help-please-i-need-help/45013/2 "2026-07-21T05:12:18Z")

</div>

> **[Clicky Fire](https://arcade.makecode.com/15606-09320-23577-47898)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

credit to @alexk

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [July 21, 2026, 5:20am UTC](https://forum.makecode.com/t/help-please-i-need-help/45013/3 "2026-07-21T05:20:05Z")

</div>

> **[t](https://arcade.makecode.com/S91876-92347-33728-32081)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

You can use `Browser Events` to do that!

---

<div class="post-metadata">

### Author: ![Bilangus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bilangus/32/33219_2.png) [@Bilangus](https://forum.makecode.com/u/Bilangus)
#### Post date: [July 21, 2026, 5:22am UTC](https://forum.makecode.com/t/help-please-i-need-help/45013/4 "2026-07-21T05:22:16Z")

</div>

You gotta use the browser events extension combined with Sprite utils. Browser events is in the default list, sprite utils is:

jwunderl/arcade-sprite-util

Then, you should have your player sprite working already. Now, create a crosshair sprite to follow the mouse cursor’s position. Add this chunk of code:

 ![1000112841](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/1/6131b5ed34409b5c8bc76a56033811b88673d83c.jpeg)

This makes it so the crosshair follows the cursor, accounting for how much the camera scrolls (i did not figure this out myself i took it from @WoofWoof )

Now, to make shooting, add a “on left mouse button pressed” block, and create the bullet from there. You can follow this example:

 ![1000112842](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/3/8386ad26202339afaf3332738698a43c58c67b93.jpeg)

The “velocity at angle” block is why we need Sprite Utils.

Here’s the project containing my example code:

> **[test](https://arcade.makecode.com/28398-31622-34172-23500)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![CodaKnight](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codaknight/32/33491_2.png) [@CodaKnight](https://forum.makecode.com/u/CodaKnight)
#### Post date: [July 21, 2026, 5:22am UTC](https://forum.makecode.com/t/help-please-i-need-help/45013/5 "2026-07-21T05:22:45Z")

</div>

Sure @adicat , you can use the **Browser Events Extension** to do achieve this!

Here is an example:

> **[@adicat mouse help](https://arcade.makecode.com/S72233-22811-10426-66306)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [July 21, 2026, 3:50pm UTC](https://forum.makecode.com/t/help-please-i-need-help/45013/6 "2026-07-21T15:50:31Z")

</div>

since I’m on mobile, when I click the bullet goes to the last place I clicked, resulting in this:

 ![markup_1000008199](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/c/1/c13923a6764dce14e1df77b184f714fe536d5db0.png)

---

<div class="post-metadata">

### Author: ![Bilangus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bilangus/32/33219_2.png) [@Bilangus](https://forum.makecode.com/u/Bilangus)
#### Post date: [July 21, 2026, 6:42pm UTC](https://forum.makecode.com/t/help-please-i-need-help/45013/7 "2026-07-21T18:42:18Z")

</div>

Yeah thats a browser events bug, it kinda just happens…

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [July 21, 2026, 9:22pm UTC](https://forum.makecode.com/t/help-please-i-need-help/45013/8 "2026-07-21T21:22:21Z")

</div>

no, it’s an update bug. The `left click` block updates before the `on mouse move` does and that’s the problem.
