# Interaction

**URL:** https://forum.makecode.com/t/interaction/20794
**Category:** Help
**Tags:** game
**Created:** [June 23, 2023, 5:02pm UTC](https://forum.makecode.com/t/interaction/20794 "2023-06-23T17:02:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jadam5](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jadam5/32/9261_2.png) [@jadam5](https://forum.makecode.com/u/jadam5)
#### Post date: [June 23, 2023, 5:02pm UTC](https://forum.makecode.com/t/interaction/20794/1 "2023-06-23T17:02:28Z")

</div>

hi i was wondering if anyone could show me the brick code for interacting with other/nearest sprite when a type of button is pressed

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [June 23, 2023, 8:26pm UTC](https://forum.makecode.com/t/interaction/20794/2 "2023-06-23T20:26:20Z")

</div>

What I usually do is the block for ‘When A is pressed’ then add ‘If mysprite overlaps othersprite’ to check if they are overlapping 😃
