# How do i detect when mysprite leaves a tile?

**URL:** <https://forum.makecode.com/t/how-do-i-detect-when-mysprite-leaves-a-tile/32196>\
**Category:** Help\
**Created:** [December 4, 2024, 2:57am UTC](https://forum.makecode.com/t/how-do-i-detect-when-mysprite-leaves-a-tile/32196 "2024-12-04T02:57:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![onecelled](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@onecelled](https://forum.makecode.com/u/onecelled)\
**Post date:** [December 4, 2024, 2:57am UTC](https://forum.makecode.com/t/how-do-i-detect-when-mysprite-leaves-a-tile/32196/1 "2024-12-04T02:57:59Z")

</div>

Im making a rooms style game and i need a way of detecting when my sprite is currently on a tile and when they leave that tile, it being the blue one, would anyone be able to help?

> **[Late-Night Splunking!](https://arcade.makecode.com/S69772-38914-34881-08140)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Longlinh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/longlinh/32/6525_2.png) [@Longlinh](https://forum.makecode.com/u/Longlinh)\
**Post date:** [December 4, 2024, 6:39pm UTC](https://forum.makecode.com/t/how-do-i-detect-when-mysprite-leaves-a-tile/32196/2 "2024-12-04T18:39:40Z")

</div>

If not overlapping tile, then: something happens  
Very simple.

---

<div class="post-metadata">

**Author:** ![onecelled](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@onecelled](https://forum.makecode.com/u/onecelled)\
**Post date:** [December 4, 2024, 10:43pm UTC](https://forum.makecode.com/t/how-do-i-detect-when-mysprite-leaves-a-tile/32196/3 "2024-12-04T22:43:53Z")

</div>

how did I even forget this 😭
