# Changing sprites

**URL:** <https://forum.makecode.com/t/changing-sprites/1373>\
**Category:** Help\
**Created:** [March 10, 2020, 8:00pm UTC](https://forum.makecode.com/t/changing-sprites/1373 "2020-03-10T20:00:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![codebott578](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codebott578/32/690_2.png) [@codebott578](https://forum.makecode.com/u/codebott578)\
**Post date:** [March 10, 2020, 8:00pm UTC](https://forum.makecode.com/t/changing-sprites/1373/1 "2020-03-10T20:00:51Z")

</div>

i can’t seen to get this code right. i tried doing when the sprite overlaps something. it changes into that thing but instead it only changes into it for only a sec. is there anyway i can fix this? can you give me a code to help? thanks.

---

<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 10, 2020, 8:11pm UTC](https://forum.makecode.com/t/changing-sprites/1373/2 "2020-03-10T20:11:17Z")

</div>

Is this what you mean?

> **[overlap-transform](https://arcade.makecode.com/91271-59054-80862-54346)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

It would help if you could share your code!

---

<div class="post-metadata">

**Author:** ![codebott578](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codebott578/32/690_2.png) [@codebott578](https://forum.makecode.com/u/codebott578)\
**Post date:** [March 10, 2020, 9:17pm UTC](https://forum.makecode.com/t/changing-sprites/1373/3 "2020-03-10T21:17:05Z")

</div>

i cant take screen shots on my computer but this code might help. this is what i’m talking about

---

<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 10, 2020, 9:18pm UTC](https://forum.makecode.com/t/changing-sprites/1373/4 "2020-03-10T21:18:02Z")

</div>

A share link also works if that’s easier

---

<div class="post-metadata">

**Author:** ![codebott578](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codebott578/32/690_2.png) [@codebott578](https://forum.makecode.com/u/codebott578)\
**Post date:** [March 10, 2020, 9:19pm UTC](https://forum.makecode.com/t/changing-sprites/1373/5 "2020-03-10T21:19:02Z")

</div>

its fine. the code help. thanks! 🙂

---

<div class="post-metadata">

**Author:** ![codebott578](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codebott578/32/690_2.png) [@codebott578](https://forum.makecode.com/u/codebott578)\
**Post date:** [March 10, 2020, 9:57pm UTC](https://forum.makecode.com/t/changing-sprites/1373/6 "2020-03-10T21:57:24Z")

</div>

it still does not work. i will send the code

> **[dark dungeons v2.0](https://arcade.makecode.com/25469-63828-26289-24931)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<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 10, 2020, 11:34pm UTC](https://forum.makecode.com/t/changing-sprites/1373/7 "2020-03-10T23:34:21Z")

</div>

Thanks! I think the issue is the animations. If you add a “stop all animations” block in your overlap event it should fix it:

 ![Screen Shot 2020-03-10 at 4.33.02 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/f4043726c54d503f983873794ed80ff8e3ad7942.png)

---

<div class="post-metadata">

**Author:** ![codebott578](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codebott578/32/690_2.png) [@codebott578](https://forum.makecode.com/u/codebott578)\
**Post date:** [March 11, 2020, 12:23am UTC](https://forum.makecode.com/t/changing-sprites/1373/8 "2020-03-11T00:23:17Z")

</div>

ok. thanks. i will see if it works

---

<div class="post-metadata">

**Author:** ![codebott578](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codebott578/32/690_2.png) [@codebott578](https://forum.makecode.com/u/codebott578)\
**Post date:** [March 11, 2020, 12:25am UTC](https://forum.makecode.com/t/changing-sprites/1373/9 "2020-03-11T00:25:48Z")

</div>

it works now. thanks. appreciate it.
