I broke it. again. Can someone help me?

arcade-SUPER-FLORIDA-MAN (8)

apparently, there’s some delicate balance of sprite image arrays or something, and now my project won’t run. this was done entirely in blocks, so can someone go into javascript and fix the issue with the Giant asteroid arrays?

Here you go!

It looks like you defined a sprite named “Giant_Asteroid” and elsewhere in your program you assigned it to an array of images. In MakeCode, variables can only hold one “type” of thing. To fix it, I made another variable named giantAsteroidImages and used that one for the array of images.

I hope that helps!

2 Likes

Thank you!

1 Like