JavaScript error

I’ve made a game that includes the character animations extension, but whenever I try to convert my code from JavaScript to blocks, it gives me an error on all the code saying “Cannot read properties of undefined (reading ‘attributes’)”. can someone please help?

here’s the code if anyone needs it.

1 Like

Hi, @EugeneRedwing8 !

It’s the same problem that @Josef had last week. @richard 's Fancy Text extension really hates going back to Blocks after you’ve switched to JavaScript. I haven’t had a chance to look at the extension to help fix it, but it’s on my list of things to get to … hopefully by the end of the month.

Anyway, here you go:

2 Likes

thanks so much for the quick reply! I thought it was the character animations extension :sweat_smile:

1 Like

also @AlexK, I don’t know if this has anything to do with the problem, but I’ve found in the api.ts file in the fancy text extension the icon code looks like this:
Screenshot 2024-08-24 2.19.33 PM
instead of looking like this:
Screenshot 2024-08-24 2.21.15 PM
there is a $ instead of a %, and I’ve also edited the code a bit myself and found that the icon actually doesn’t show up with a $.

1 Like

Oh that’s SUPER helpful … and could be the reason? At the very least, it’s a typo that should be corrected.