hectic
November 16, 2002, 1:58pm
1
Hey guys, i finished the game i was making (see at www.se-miserious.com ) but I want to add a top score system to it…i read a tutorial on flashkit which uses a simple PHP script…that’s really easy, but I’m confused as to how to submit the details to write to it…here’s the flashkit tutorial:
http://www.flashkit.com/tutorials/Games/High-sco-Glen_Rho-657/index.php
Please post back with help :rambo:
system
November 16, 2002, 5:06pm
2
PHP script? … i thought you had to use a database to keep track of anything … i.e. scores
system
November 16, 2002, 5:07pm
3
Nah, the php script puts the info into a txt file…do you know how to make a list?
system
November 16, 2002, 5:08pm
4
i don’t know PHP … but that sounds useful … i’m gonna have to look into that
what kind of list?
system
November 16, 2002, 5:12pm
6
yeah i have it here in book … but it’s quite lengthy
system
November 16, 2002, 5:13pm
8
AIM = vader4379
MSN = seans88@hotmail.com
but it’s a few pages … and i’m reading through it to see what’s important so maybe i can type that here
system
November 16, 2002, 5:17pm
9
Do u want a PHP script that saves the information into the Txt file, i made one some time ago, just send me a reply and i’ll send it to you back! =)
system
November 16, 2002, 5:21pm
11
Here u go, its really very simple, but does the job!
<?
$file = fopen("scores.txt", "a");
fputs($file, $username." - ".$scores."
");
fclose($file);
?>
yours,
h88
system
November 16, 2002, 5:22pm
12
Hehe, i’d love one thanks, wouldn’t mind talking to you either… AIM: HecticDesigns
MSN: benscuter@hotmail.com
email: ben@hecticdesigns.com
system
November 16, 2002, 5:22pm
13
nah, i really like discussing it in the forums
system
November 16, 2002, 5:23pm
14
Well, how do I implement that into my game? i’d really like to send u the fla…
system
November 16, 2002, 5:24pm
15
hmm, ok ill post a flash actionscript right now, just hang on a sec!
system
November 16, 2002, 5:26pm
16
Ok lemme explain
I have a dynamic txt box where the score goes and when the time runs out it goes “Time over, you’ve got…” then underneath it has the score box…so i wanna have another txt box where u enter ur name and press submit and it send ur name and score off…
system
November 16, 2002, 5:30pm
17
hmmm, this is quite not as i thought, You then will need an output something like:
userID=Score
well, this will output in textfile:
username - score!! so, u cant easily retrieve it back into flash
Ill try doing a PHP code for this later, probably today!
cya until time!
h88
system
November 16, 2002, 5:32pm
18
The thing is, i don’t want the scores in flash…i wanna put em on my webpage…
system
November 16, 2002, 5:35pm
19
Why? the thing is the PHP Code, though its easier when its done with Flash!
btw, do u want the code to only record the Top 10!
Top 10 would be easier!
system
November 16, 2002, 5:37pm
20
Yeh top 10 is fine, thanks a lot…thing is like candystand.com i wanna have it so they play the game, click submit and it (for example) saves it to a txt file which i can include on my website…