Thanks for the answer and for the example, but it only works partially. My question was perhaps not well expressed.
Your example works perfectly until I add a second pick condition, then, the active sprite changes its frame by updating it to the last available frame while it should keep the frame set as active (in this case frame 1).
Another problem that remains is that in the case of two sprites active at the same time, the reaction of the other sprites becomes unpredictable, they do not always assume the frame indicated by the distance in pixels indicated by me in the pick condition and sometimes they do not react to the proximity to the active sprite.
I hope I have better explained the problem now, otherwise I will try to make a video to show what I expect, in the meantime I am attaching an image of the modification I made and the problem that arises. Thanks again for the help.