# Fromallsides

**URL:** <https://forum.makecode.com/t/fromallsides/14338>\
**Category:** Help\
**Created:** [July 5, 2022, 6:16pm UTC](https://forum.makecode.com/t/fromallsides/14338 "2022-07-05T18:16:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robigu444](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robigu444/32/6453_2.png) [@robigu444](https://forum.makecode.com/u/robigu444)\
**Post date:** [July 5, 2022, 6:16pm UTC](https://forum.makecode.com/t/fromallsides/14338/1 "2022-07-05T18:16:15Z")

</div>

> **[Fromallsides](https://arcade.makecode.com/15654-03372-48307-56955)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

HELP i want to make like when my projectile overlaps enemy projectile it destroys my projectile and my enemy projectile, but it do not works, can some one help me pls

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [July 5, 2022, 6:22pm UTC](https://forum.makecode.com/t/fromallsides/14338/2 "2022-07-05T18:22:58Z")

</div>

Instead of using the global “projectile1” variable, you want to use the _local_ sprite variable in the event. You can drag it out from the event block like this:

![drag-out](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/c5faf83b01d32f2226fa4738be899495826c93e6.gif)

---

<div class="post-metadata">

**Author:** ![robigu444](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robigu444/32/6453_2.png) [@robigu444](https://forum.makecode.com/u/robigu444)\
**Post date:** [July 6, 2022, 4:30pm UTC](https://forum.makecode.com/t/fromallsides/14338/3 "2022-07-06T16:30:44Z")

</div>

thanks! this help me a lot.
