I have 4 instances of player indicator's sprites (p1, p2, p3, p4). Everyone is the same sprite, but different frame of the animation.
I want to use "for each (ordered)" for assigning 4 different global values (Player1, Player2, Player3, Player4; each one stores the current player sprites's UID).
But I can't simply make an event using "For each (ordered)" on the pin sprites because it will overrite the results if I place each global variables's value in the same event.
(I know this example will obviously fail. But I want to show explicitly what i'm trying to achieve)
Writing each Global variable with each player sprites's UID on the Player's pin sprite's variable is the simplest way I can imagine to assign each pin to the corresponding Players.