Heart animation not working

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!

4 Likes

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

2 Likes

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

2 Likes

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

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

3 Likes

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

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