# Heart animation not working

**URL:** <https://forum.makecode.com/t/heart-animation-not-working/6376>\
**Category:** Arcade\
**Created:** [February 25, 2021, 8:33pm UTC](https://forum.makecode.com/t/heart-animation-not-working/6376 "2021-02-25T20:33:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaturn68](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jaturn68/32/2180_2.png) [@jaturn68](https://forum.makecode.com/u/jaturn68)\
**Post date:** [February 25, 2021, 8:33pm UTC](https://forum.makecode.com/t/heart-animation-not-working/6376/1 "2021-02-25T20:33:57Z")

</div>

Hi, can someone please help me figure out why the heart is not replacing the red block? I have stared at it for far to long now.

Thanks in advance!

> **[Sanjay Mario Game](https://arcade.makecode.com/36844-74826-30176-22116)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [February 25, 2021, 9:45pm UTC](https://forum.makecode.com/t/heart-animation-not-working/6376/2 "2021-02-25T21:45:07Z")

</div>

I think this is a make code bug?  
@richard?

---

<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:** [February 26, 2021, 12:10am UTC](https://forum.makecode.com/t/heart-animation-not-working/6376/3 "2021-02-26T00:10:56Z")

</div>

Yes, thank you for reporting! This is definitely a MakeCode bug. Here’s a fixed version of your project:

> **[Sanjay Mario Game](https://arcade.makecode.com/47030-93743-58322-80947)**
>
> 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:** [February 26, 2021, 12:25am UTC](https://forum.makecode.com/t/heart-animation-not-working/6376/4 "2021-02-26T00:25:49Z")

</div>

The issue was triggered by the name you gave the red tile ("Life "), which ends in a space. I’ve filed a bug in our GitHub here: [https://github.com/microsoft/pxt-arcade/issues/3187](https://github.com/microsoft/pxt-arcade/issues/3187)

In the meantime, make sure if you give tiles a new name that it does not include any spaces at the beginning or end!

---

<div class="post-metadata">

**Author:** ![jaturn68](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jaturn68/32/2180_2.png) [@jaturn68](https://forum.makecode.com/u/jaturn68)\
**Post date:** [February 26, 2021, 5:27pm UTC](https://forum.makecode.com/t/heart-animation-not-working/6376/5 "2021-02-26T17:27:09Z")

</div>

Thank you @Agent_14 for your help!!! I would never have found this bug on my own!

---

<div class="post-metadata">

**Author:** ![jaturn68](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jaturn68/32/2180_2.png) [@jaturn68](https://forum.makecode.com/u/jaturn68)\
**Post date:** [February 26, 2021, 5:27pm UTC](https://forum.makecode.com/t/heart-animation-not-working/6376/6 "2021-02-26T17:27:11Z")

</div>

Thank you so much @richard - I would NEVER have found this bug!!!
