# onOverlap Leave Callback?

**URL:** https://forum.makecode.com/t/onoverlap-leave-callback/1362
**Category:** Arcade
**Created:** [March 9, 2020, 11:05pm UTC](https://forum.makecode.com/t/onoverlap-leave-callback/1362 "2020-03-09T23:05:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![orta](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/orta/32/679_2.png) [@orta](https://forum.makecode.com/u/orta)
#### Post date: [March 9, 2020, 11:05pm UTC](https://forum.makecode.com/t/onoverlap-leave-callback/1362/1 "2020-03-09T23:05:20Z")

</div>

Hi, everyone, I’m interested in being able to change the image of a sprite when you are overlapping another sprite (basically it’s like a hover state on web) - is there a way to do this?

---

<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: [March 9, 2020, 11:35pm UTC](https://forum.makecode.com/t/onoverlap-leave-callback/1362/2 "2020-03-09T23:35:06Z")

</div>

Here’s one way to do it:

> **[hover-example](https://arcade.makecode.com/97715-82625-40891-94036)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![orta](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/orta/32/679_2.png) [@orta](https://forum.makecode.com/u/orta)
#### Post date: [March 9, 2020, 11:51pm UTC](https://forum.makecode.com/t/onoverlap-leave-callback/1362/3 "2020-03-09T23:51:51Z")

</div>

Thanks perfect, I wondered a bit later if this was the right route. This will totally work.
