PDA

View Full Version : MX! Scoring problem



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:

Lemuel
October 13th, 2006, 09:37 AM
Upload the Fla somehwere and send me the link, or you can email the fla to me.
I can build it (assuming your description of your problem is accurate)
And I don't see it taking too long.
I've done things similar to that for other purposes.

However, keep in mind that I can only work on it for you today, and sunday through friday.
I don't touch the computer at all on Saturday.

So if you want me to get cracking on it, you need to send it quickly, or wait for sunday.

I'd be glad to help, and I'll try to comment the code where needed as well so you can understand enough to modify and enhance it should the need arise.

tct182
October 17th, 2006, 07:37 AM
:trout: That would be fantastic! I will get it across to you sometime this week!

And there was me thinking no-one would reply to my post lol

If you could comment it that would be ace. I'm kinda struggling to get to grips dealing with numbers in Actionscript.

Lemuel
October 17th, 2006, 12:15 PM
I'm still coming to grips with aspects of actionscript as well, but I've gotten far enough to be of service to others.

Its a way to give back to Kirupa.com, I've been leaching off of forum posts, tutorials etc.. for a while.

When I get your Fla and start work on it, I'll be sure to comment the code with your experience in mind.

:)

-Lem