I am new to scratch and I am wanting to know how to show rankings.
I will explain more, I am making a project that it is like the league standing you find in a newspaper about football. So I have 4 teams (4 separate sprites) and one statistician. I am wanting to know if I click one of the sprites representing each of the teams how would I write a script so that it would show in a speech bubble what rank they are (1st 2nd 3rd or 4th).
I have tables (lists) representing how many wins each spite has how losses, points scored against each points score for each and the standings.
I really hope this made sense and I would really appreciate any help I can get
Thanks a bunch!
Offline
There's probably a simpler way, but the way I would do it is make a list with the team in 1st place at item 1 of the list, 2nd place item 2, and so on. Then put:
When team 1 clicked
If item 1 of list = me
Say 1st!
End if
If item 2 of list = me
Say 2nd!
End if
If item 3 of list = me
Say 3rd!
End if
If item 4 of list = me
Say 4th!
End if
I haven't tested it, but I think this would work.
Offline