Hello, Iwant to program a Soccer-Managergame with AGS.
So far, so good, but how can I create a league table with 18 teams?
For example, I've created the teams as Overlaystrings and the "Slots" for Points & Goals as labels, but how can I make AGS sort these parameters?
thanks
EDIT: If you have completly another idea, it's okay, as long as it works!
It would help to know how you would like them sorted...
However something you may try is an array of the team names, you can start sorting by going through the array and checking whatever it is you want them to sort by.
I could see a struct being used such as
struct Team{
String TeamName;
int Wins;
int Losses;
};
Then you could script to sort by wins losses, or by team name (note this will take some scripting to accomplish);
But yes, exactly how would you want them sorted.