What is wrong with this code?

What is wrong with this code?

Screenshot 2021-11-09 2.29.36 PM

To clarify, the AnimArray variable is an array of the 5 most important animations in my game.

You cannot change the color of an array of images (array of images == animation block) so you must iterate over every frame in the animation individually.

1 Like

For example:
image
Yours would have more if statements, etc. but it will still have a nested for loop like this.

1 Like

how do you change the “value” in the for element blocks to something else (like the image variable [variable???] in the example)

Right click the “value” variable drag-out thingy:
image
You can choose for it to be an existing variable or rename it. Note that this list isn’t sorted for some reason and doesn’t look as nice…not sure why.

OK

[animate output image]|270px;x156px;