# Dialog problem

**URL:** <https://forum.makecode.com/t/dialog-problem/2277>\
**Category:** Arcade\
**Created:** [May 31, 2020, 10:30am UTC](https://forum.makecode.com/t/dialog-problem/2277 "2020-05-31T10:30:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tchetche](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@Tchetche](https://forum.makecode.com/u/Tchetche)\
**Post date:** [May 31, 2020, 10:30am UTC](https://forum.makecode.com/t/dialog-problem/2277/1 "2020-05-31T10:30:54Z")

</div>

Can someone help me with the dialog between mysprite and singe2  
The dialog restarts automaticaly and I’m stuck with mysinge2 (my monkey 2).

Thanks

> **[Zelda Thierry Liévens Huy 1PP](https://arcade.makecode.com/39843-59287-58651-85153)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [May 31, 2020, 6:28pm UTC](https://forum.makecode.com/t/dialog-problem/2277/2 "2020-05-31T18:28:27Z")

</div>

I believe this fixes the problem for you:

> **[Zelda Thierry Liévens Huy 1PP](https://arcade.makecode.com/34549-08214-87350-71872)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

The issue was that the forever loop was creating a bunch of the monkey (one each iteration) and placing them on top of each other, causing multiple overlap triggers in a row between each one and the player.

Few other things I saw that might be helpful:

The animation extension will cut down on the number of blocks in the program by a lot – the forever loops for the character animations can be replaced with a single ‘start animation’:

 ![adding-animation-pkg](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/a815f410016a748041189e4397a9355f869c3da3.gif)

You don’t need to handle the overlaps between each coin one by one – you could use a single overlap event that will work for all of them:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/56b654e99adb01ed83cf612240b3b1ad68e1a4c5.png)

can just be:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7700232b0b9486b05748229898e9b01c0a814c58.png)

note the use of `otherSprite` to refer to the coin that you have overlapped with.

I made a few of those changes in this version to show how it could be done:

> **[Zelda Thierry Liévens Huy 1PP](https://arcade.makecode.com/27832-98416-39272-39014)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

(I changed the snakes to use animations, and the coins to use overlap events)
