Enable or disable images from an array

I’d recommend that you use health.Length instead of ‘3’ in your for loop, just for good practice.

Also, use:

health[i]

And so on, not Image. That should fix it up for you, I think.

Take a few moments to read this thread, for how to post code nicely on the forums: Using code tags properly

Ah, yes don’t ‘break’ if you don’t need to. Nice catch @BlackPete . heh.

1 Like