I made a litte example how I would do it, maybe that helps:
https://drive.google.com/uc?export=download&id=1Ocmoy6ZCmwNeaoRrzIz7Z1oLPfy3XmsR
So good friend! I really appreciate that you have taken the time for me!
But I have a family of objects (Sprites) and it is necessary to select an object with the UID of the variable through for each. But for some magical reason this does not happen, although the object with such id exists, even through a unique change for the object did, did not help.
Maybe I do not understand the meaning of For Each?
Ps, simplified event:
image.ibb.co/n3oqCU/xzczxc.png