# High Score for a game?

**URL:** <https://forum.kirupa.com/t/high-score-for-a-game/8236>\
**Category:** Uncategorized\
**Created:** [November 16, 2002, 1:58pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236 "2002-11-16T13:58:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![hectic](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@hectic](https://forum.kirupa.com/u/hectic)\
**Post date:** [November 16, 2002, 1:58pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/1 "2002-11-16T13:58:29Z")

</div>

Hey guys, i finished the game i was making (see at [www.se-miserious.com](http://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](http://www.flashkit.com/tutorials/Games/High-sco-Glen_Rho-657/index.php)

Please post back with help :rambo:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:06pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/2 "2002-11-16T17:06:55Z")

</div>

PHP script? … i thought you had to use a database to keep track of anything … i.e. scores

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:07pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/3 "2002-11-16T17:07:54Z")

</div>

Nah, the php script puts the info into a txt file…do you know how to make a list?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:08pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/4 "2002-11-16T17:08:34Z")

</div>

i don’t know PHP … but that sounds useful … i’m gonna have to look into that

what kind of list?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:09pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/5 "2002-11-16T17:09:38Z")

</div>

A high score list

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:12pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/6 "2002-11-16T17:12:04Z")

</div>

yeah i have it here in book … but it’s quite lengthy

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:12pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/7 "2002-11-16T17:12:36Z")

</div>

Do you have AIM or MSN?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:13pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/8 "2002-11-16T17:13:31Z")

</div>

AIM = vader4379  
MSN = [seans88@hotmail.com](mailto: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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:17pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/9 "2002-11-16T17:17:57Z")

</div>

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! =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:18pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/10 "2002-11-16T17:18:36Z")

</div>

i’d like to have one =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:21pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/11 "2002-11-16T17:21:00Z")

</div>

Here u go, its really very simple, but does the job! 🙂

```php
<?
$file = fopen("scores.txt", "a");
fputs($file, $username." - ".$scores."
");
fclose($file);
?>

```

yours,  
h88

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:22pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/12 "2002-11-16T17:22:03Z")

</div>

Hehe, i’d love one thanks, wouldn’t mind talking to you either… AIM: HecticDesigns  
MSN: [benscuter@hotmail.com](mailto:benscuter@hotmail.com)  
email: [ben@hecticdesigns.com](mailto:ben@hecticdesigns.com)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:22pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/13 "2002-11-16T17:22:43Z")

</div>

nah, i really like discussing it in the forums 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:23pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/14 "2002-11-16T17:23:14Z")

</div>

Well, how do I implement that into my game? i’d really like to send u the fla…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:24pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/15 "2002-11-16T17:24:49Z")

</div>

hmm, ok ill post a flash actionscript right now, just hang on a sec!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:26pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/16 "2002-11-16T17:26:46Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:30pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/17 "2002-11-16T17:30:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:32pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/18 "2002-11-16T17:32:52Z")

</div>

The thing is, i don’t want the scores in flash…i wanna put em on my webpage…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:35pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/19 "2002-11-16T17:35:15Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 5:37pm UTC](https://forum.kirupa.com/t/high-score-for-a-game/8236/20 "2002-11-16T17:37:58Z")

</div>

Yeh top 10 is fine, thanks a lot…thing is like [candystand.com](http://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…

[Next page](https://forum.kirupa.com/t/high-score-for-a-game/8236.md?page=2)
