Turn Multiple Sprites to a Different Image

I’m trying to make code that will turn multiple sprites into a different image when the A button is pressed, and return them to the their old image if the A button is released. It’s only turning 1 sprite into the correct image and returning it back to it’s old form when the A button is released.

Does anyone know how to fix this?

1 Like

image
This code should work! It should make every sprite of that kind change its image.