I'm working on a board game similar to Mario Party.
throughout the game all 4 player characters should be ranked (1st, 2nd, 3rd, 4th place) based on their score (how I determine their score isn't relevant to this topic)
For the life of me I can't figure out how to do this, I have tried a bunch of things and searched on google for a solution but found nothing.
Right now I have all 4 player objects in a family and they get sorted by their score from highest to lowest and then a sub event picks the 1st, 2nd, 3rd, and 4th object in the family and sets their "placement" variable to 1, 2, 3, and 4
and then a corresponding rank sprite will update to 1st 2nd 3rd or 4th depending on the player's placement variable.
I think the problem here is that selecting the "0th,1st 2nd etc" instance of a family doesn't select any of the objects in that family but rather the family itself. and since there is only 1 instance of the family, it always sets all the players to 1st place
that being said what would be the best way to go about setting the placement of all 4 of the players based on their score? would I even need a family to do this?