View Full Version : Tutorial for making hiscore table
wkt
July 11th, 2009, 12:56 AM
Hi there
Can anyone suggest some great tutorials for making hiscore tables allowing hiscore submission in a Flash game?
Thanks in advance.
flyingmonkey456
July 11th, 2009, 02:15 AM
the information would have to be stored online somewhere. i would suggest using a premade one, most of them require you to use their ads. i can't recall the names of any, but if i remember i'll let you know.
wkt
July 11th, 2009, 03:53 AM
Ok. But I need to build my own as part of my project. If you remember any of those webs, please inform me. Thank you very much.
flyingmonkey456
July 11th, 2009, 05:05 AM
Ok. But I need to build my own as part of my project. If you remember any of those webs, please inform me. Thank you very much.
does it need to track high scores across the web, or just on one computer?
wkt
July 11th, 2009, 07:34 AM
I think I'll need to track high score across the web. There should be a hiscore table somewhere on my game's web.
I have a server which I can use online. Can do php and can run mySQL databases.
flyingmonkey456
July 11th, 2009, 12:42 PM
(What the hell is that! Anyway...)
I think I'll need to track high score across the web. There should be a hiscore table somewhere on my game's web.
I have a server which I can use online. Can do php and can run mySQL databases.
if it's online, you've gotta ask someone else. i really don't know how to use php or mySQL, i use newgrounds so i've never had to. i'll see if i can find a tutorial real quick :)
bluemagica
July 11th, 2009, 10:19 PM
http://www.flashkit.com/tutorials/Games/PHPMySQ-Jeroen_d-785/index.php
a highscore table is really easy to create and maintain, you just need to know the basics of flash php communication!
wkt
July 11th, 2009, 11:39 PM
Thanks very much! I assume that the code is for online flash games, right? That is those played in the browser? Are there anything I need to add in order for standalone flash games in the hard drive of a computer (.exe) to work?
stupidsaint
July 12th, 2009, 10:09 AM
I have made several Hi Score tables in my time and shall share my wisdom with you.
For public/private hi score tables you should use information stored on the users computer, google flash cookies for help on this.
For online hi score tables I have mainly used asp, but I'm sure PHP us good too. Send information like name, score, county and time off to a server and have the information stored onto their server. then send the server another request asking for the top ten.
The second is considerably harder and you have to take into account cross domain loading and what not, while the first is more easy but again can only be seen by that particular user.
The last option is one I hate... pre-made hi scores. Websites like mochi ads use online score boards to display information as well as advertisement
Hope this helps
wkt
July 13th, 2009, 12:20 AM
I've heard of something like "cross domain policy file". It is necessary when linking to some files at a remote location like an online server.
So such a file is required in the root directory of the server so that the .exe file in the player's computer can link to the servers. Am I right?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.