tct182
October 13th, 2006, 08:05 AM
Hi :rd:
I'm making a scoring board which has 40 icons on screen.
When the user clicks on an icon, it generates a random number between 1-20 and that number apears over or below the icon.
I would then need that number to be added to a team score.
There are 4 teams and I would need each teams score to be added up in the order they take their turns.
E.g: Team 1 picks an icon, randomly loads number 2 - Team 1 Score = 2
Team 2 picks an icon, randomly loads number 10 - Team 2 score = 10
Team 3 picks an icon, randomly loads number 1 - Team 3 score = 1
Team 4 picks an icon, randomly loads number 20 - Team 4 score = 20
Team 1 picks an icon, randomly loads number 10 - Team 2 score = 20
etc...
Can anyone shed any light on how I can do this? I've been trying and I cannot figure out how to load the numbers randomly then get them to add up in a certain order.
Help anyone! :hr:
I'm making a scoring board which has 40 icons on screen.
When the user clicks on an icon, it generates a random number between 1-20 and that number apears over or below the icon.
I would then need that number to be added to a team score.
There are 4 teams and I would need each teams score to be added up in the order they take their turns.
E.g: Team 1 picks an icon, randomly loads number 2 - Team 1 Score = 2
Team 2 picks an icon, randomly loads number 10 - Team 2 score = 10
Team 3 picks an icon, randomly loads number 1 - Team 3 score = 1
Team 4 picks an icon, randomly loads number 20 - Team 4 score = 20
Team 1 picks an icon, randomly loads number 10 - Team 2 score = 20
etc...
Can anyone shed any light on how I can do this? I've been trying and I cannot figure out how to load the numbers randomly then get them to add up in a certain order.
Help anyone! :hr: