ActionScript 2.0 :: Soccer Game - Showing Classic Results Realtime With Scores
Jul 19, 2003
I want to make a soccer score game. A game that shows classic soccers results realtime with the score at the point they where scored.
An example:
World Cup 1986 Mexico
West Germany - Argentina
The final score 2 - 3
The players who scored and the exact time:
---West germany---
Rummenigge (74 min)
Voller (82 min)
------------------
---Argentina------
Brown (23 min)
Valdano (56 min)
Burruchaga (85 min)
------------------
The total of matches with data like above is 45.
The total time of a soccergame is 90 minutes.
And further more I want a start player selection kind-of-thing like this:
USER INPUT
select game [] (ex. VM 86 mexico, VM 94 USA etc.)
select number of players: [] (ex. 4)
select number of games pr player [] (ex. 5)
Select total time of playing [] (ex. 60 minutes)
Write the name of the players
1. Load external data (the pool of matches)
2. Get user input
3. Select random matches for the players
4. Calculate the time (90min/60min etc.)
5. Tell clock countdown the time and start the countdown from 90min to 0min
6. When a scoretime is equal to clockcountdown time then display game score and the soccerplayer who scored and the name of the player who got the match.
View 2 Replies
Similar Posts:
May 20, 2011
I'm having difficulty getting a scoring system on a card game to work properly.
View 2 Replies
Jun 3, 2009
And one more, im still new to flash and im thinking which database is best to be used for flash. i got some ideas in SQL server and Microsoft Access.
View 1 Replies
May 20, 2010
I need to compute scores and would also like to notify users on their progress.There are 5 questions , 20pts each = 100pts;
I built two arrays (rightAnswers will compute scores and completeAnswers will give them their progress :
var rightAnswers:Array = new Array(next1_mc, next2_mc, next3_mc, next4_mc, next5_mc); var completeAnswers:Array = new Array(submit_btn, submit2_btn, submit3_btn, submit4_btn, submit5_btn);
I know I need to set them both at 0 something like: so I think the function for the FIRST progress_txt (twhich their will be 5 for each question completed)<<clueless on this one
function computeProgress(code)......
View 3 Replies
Jun 6, 2010
I have a simple flash based quiz game with simple score var and percentage var. I am wanting to a high score function to it as motivation to my kids by creating healthy competition with high scores. This is not a web based game. I found many PHP high score tutorials but wont work for me.
View 7 Replies
Jan 26, 2011
Im making a flash game and just wondering, how can I protect the ingame scores from being hacked ? For the moment im using a random number, which is set on the server and sent to the client, then using a hashing function which will hash 'score+randNumber' (a bit more complex, but the same idea), then i send the resulting score and the hash to the server (obviously logging attempted cheats). This so far works, but it is still easy to hack the score by decompiling the flash and finding out what the hashing formula is. Is there any other way that the scores can be transmitted to the server with little or no possibility of hacking?
View 3 Replies
Sep 29, 2010
I know this is a subject that gets covered a lot as i have found a ton of tutorials that show a million different ways to create a high scores board on a flash game. So I decided to go out on a limb and pick a tutorial out to try. Well I have now tried 3 different ones and have yet to get a working high scores board with my game. [URL]
That is the link to the most recent attempts to creat my high scores board. When I finished everything the way the tutorial said it seemed like everything would work and then it just didnt. After spending oh about 40 plus hours trying to make a high scores board I am getting very frustrated. My game is scripted in AS2 and I have access to mysql and can set up unlimited databases.
View 7 Replies
Jan 14, 2012
I am looking at the SharedObject class. Just wonder if I am at the right direction?
View 1 Replies
May 16, 2011
I've been asked if I can build a game, which lots of people will play and the overall winner will get a prize.The game part is simple enough, and I know enough PHP/MySQL to put something together to store the results etc. But is there something already available which could do this part for me, it would save a lot of time, and would probably be better than something I build myself.
View 1 Replies
Jun 19, 2011
[URL] I'm trying to make a small realtime game using sockets but some packets simply get lost (Wireshark says they arrive properly!)
View 1 Replies
Apr 1, 2011
I'm looking to create a flash game eviroment where a client's members can play each other in a realtime environment. Mostly trivia question type things, and maybe some shared animations. I've done this over RTMP before with a host that also provided video streaming, but I only need the Shared Object communications this time. does Shared Object communication take just as much resources as video to support?
View 1 Replies
Oct 11, 2003
how can i make a high score table for a flash game where EVERYONE see's the same high scores?
eg.
Bill gets 1000 in USA
Ben gets 1002 in UK
they can see each others scores on a high score table.
View 7 Replies
Aug 2, 2011
I have a flash quiz game, written in AS2, a few years old and needs some updating. I need to include a print button for at the very end, so the user can print out their test scores. I've found one script for the PrintJob Class, but it hasn't worked so far. [highlight=Actionscript]
btn.onRelease = function(){
var pj = new PrintJob();
var success = pj.start();
[code]...
What's the problem with this script; and alternatively, is there another way to print the results?
View 1 Replies
May 16, 2008
I run a soccer fantasy league in which managers choose their team from a flash pitch linked to a list of players in a mysql database. They drag players from the list onto 11 places on the pitch and submit their team to the database. The players are listed in database columns which include their id number, their club (eg MUN for Man United, CHE for Chelsea) and their name.
There are three actionscripts attached to the three frames on the swf, one for loading the players from the database, another for moving them about and a third, I think, for submitting. The action script is 2.0.
I want the flash script to only allow managers to drag and drop a limit of two players from each club onto the pitch and into their team. If they try to drag a third player from the same club onto the pitch I want and error window to pop up stopping them from doing it.
I know a bit about flash design but little about actionscript. Would this be easy to do in the flash script?
Hope someone out there can give me a steer.
cheers
Mickey
View 5 Replies
Jan 18, 2010
I don't often come onto forums, only when its really a big problem, and atm i need to create a 3d soccer ball that can rotate, but the black areas on the soccer ball i need to make click-able, kinda like having a soccer ball nav Can someone please point me in the right direction, i managed to build a transparent sphere made up of bitmap images that are click-able but i don't know how to skin the sphere with a soccer ball texture
View 0 Replies
Oct 27, 2009
I have a solitaire game. There's a bug that only shows up in Windows, not Mac. When a player moves a card from one pile to another, a copy of the card image shows up in the left corner and stays there until the player moves another card. When the player moves the mouse over the image the image erases. Here is the game: [URL]
View 8 Replies
Feb 26, 2011
There's a bug that only shows up in Windows, not Mac. When a player moves a card from one pile to another, a copy of the card image shows up in the left corner and stays there until the player moves another card. When the player moves the mouse over the image the image erases.
View 3 Replies
Feb 5, 2009
There's a bug that only shows up in Windows, not Mac. When a player moves a card from one pile to another, a copy of the card image shows up in the left corner and stays there until the player moves another card. When the player moves the mouse over the image the image erases.
View 1 Replies
Dec 12, 2009
How do I add numbers in Actionscript 3? I have two dynamic texts
totalscore.text = "3"; and
myscore.text = "2";
I'm trying to add them like this
totalscore.text += myscore.text;
And I get this answer 32 instead of 5 it just attaches them instead of adding. why? I also tried it like this
var my_score:Number = myscore.text;
totalscore.text += my_score;
But it still attaches them numbers together instead of adding.
View 1 Replies
Jun 14, 2011
I'm trying to make a very simple flash game for my college project. The players will get 1 point each time they click on certain object. I've created 3 scenes and each of the scene has score value. I want to total up the score at Scene3. FYI, I use:
1st Action Script add this to the variables frame:
_root.total = 00;
2nd Action Script add this to each of the hit sections in the Action Script frame:
_root.total = Number (total) +1;
how to add up the scores from Scene 1,2 & 3?
View 3 Replies
Sep 17, 2004
i am currently doing my final year project. I am developing games. I have problems with the scoring part. I need help to do high scores using text files. Can you please help teach me step by step how to store high scores.
View 1 Replies
Nov 1, 2006
find a piece of code that creates a high score list of say, the 10 best scores for a Flash game, and stores it inside the .fla. (Is this even possible?)All I found was the following file: http:[url]...(source fla http:url...)But when I try to ctrl-enter it from Flash 8, the program hangs and the swf just won't open...
I'm aware of the fact it'd be much handier via PHP and a MySQL database, but I'm making a game for a contest in which it isn't allowed to use any additional files (also no txt files) next to the main game swf .
View 1 Replies
Jul 12, 2011
do I have to pre-render scores in a game? I ask because I'd like to scale and fade in and out each score. Pre-rendering makes sense if you have to do it once only, right?
Does it take too much resources when pre-rendering each dynamically created scores individually? What are alternatives when performance of a game is important?
View 3 Replies
Apr 25, 2011
I heard of XMPP, websocket. I'm confused about what to use. For example let's say I'm a financial broker and distribute real time quotes to client platforms on the web and on desktop in Flash, .NET or PHP. What should I use ?
View 1 Replies
Jul 9, 2011
I want to make a flash game by actionscript. Now I want to get the real time weather in my game. But I don't understand how,about this.p/s: I'm Vietnamese, my English is not good. I hope all you understand properly.
View 3 Replies
May 20, 2011
I have some code which fills a high scores table.. we've decided to give away a prize to the top ten people in the high scores table.. the problem is that people are playing repeatedly and fillnig the high scores table with their name, this makes it unfair to other players as they can't manage to get onto the table Is there a way I can modify my code to ignore the same name should it appear and skip to the next non repeated name(pseudo) and score ??
[Code]...
View 8 Replies
Dec 15, 2010
I can find many AS2 tutorials on how to make a high scores table using PHP and sometimes SQL, but none for AS3. a resource showing me how to submit the user's score, and if it's in the top ten, show it on that list? I have the local high score just set to a variable, but would love for that to be passed to my SQL table.
View 1 Replies
Aug 14, 2009
I'm playing around with the new Sound API in flash player 10 and I managed to load a mp3 from HD, extract it's bytearray and let it play. While playing I can play around with the pitch in realtime.
Now I want to add distortion, bass and echo on the sound, the only thing is I'm not a music specialist. I don't know the mathematics behind the effects.
View 3 Replies
Jul 2, 2009
my flash site is a full flash site...
Flash CS4 - AS3
swfObject2 / dynamic / embed
in default the scaling is "noscale" because i don't want to scale whether a bit the browser the full flash site... there is a button to go in fullscreen, that's works fine...
BUT
in the flash doc will be another button and WHEN the user wants it, click that button and the scaling changes in realtime without the browser reload the entire page... the button sets the scaling to "showall".
that's what i want... is it possible to change the scaling in realtime?
View 4 Replies
Aug 19, 2011
In my game there appear scores when you shoot down enemies. That kinda works so far but they overlap when the enemies were too close to each other when shot down.Now what I'd like to do is to prevent the overlapping of the scores. The basic idea I had was to loop through the array of scores and to check the distance to each other.
Code:
private function checkScoreDistance():void
{
scoreManager.scoreCount = scoreManager.scores.length;[code]........
View 2 Replies