PDA

View Full Version : High-Score list! need help creating



Joppe
February 25th, 2005, 04:42 PM
Hello! I need help creating an high-score list .. I've searched and searched and searched and i have not found an single good working tutorial on the subject.. Could someone help me or point me in the right direction becouse i really need it..


-Joppe

bombsledder
February 25th, 2005, 05:53 PM
well u should use php and mysql :P :P :P :P

Joppe
February 26th, 2005, 08:22 AM
Php Mysql hmm... Isnt that hard? I dont have much experience of Php or mysql .. Is it any good tutorial or something on that.. :S

Lord Rahl
February 26th, 2005, 10:06 AM
Depends on how you want it. You could just store the points into variables and check the old high score with the new. Then replace the old with the new. Check out this little test I did. Notice at the end the scores come up. Is it something like that you want? TEST HERE (http://www.kirupa.com/forum/showthread.php?t=85668)

Joppe
February 26th, 2005, 11:51 AM
Well.. Yeah thats a good test :thumb: .. But i just want it as simple as possible just to get those variables and show 'em up :P


-Joppe

Lord Rahl
February 26th, 2005, 12:06 PM
Well.. Yeah thats a good test :thumb: .. But i just want it as simple as possible just to get those variables and show 'em up :P


-Joppe
Np, this is a very simple thing to do. Make a variable like score = 0. You just have it so everytime you do something (answer question correctly, kill a enemy, or whatever it is you want it to do) it adds to the variable. Example score += whatever. Then at the end when you want it to show you just make a dynamic text field and give it a var name. I suggest keeping it close to the name of the variable going into it. So call if the variable is score name it Score. Then use a script on the frame Score = score. If you want it to test to see if it is higher than the last score just use something like
if(score > highscore){
highscore = score
Score = highscore
}else{
Score = highscore
}
You get it? If not let me know and I will explain in deeper details.;)

Joppe
February 26th, 2005, 12:17 PM
Well.. The problem is that i got an timer and when you have done an map i want the time left to be sent to the varible.. Can you do that or is that impossible ?

Lord Rahl
February 26th, 2005, 03:40 PM
Well.. The problem is that i got an timer and when you have done an map i want the time left to be sent to the varible.. Can you do that or is that impossible ?
Thats possible as well. Same idea, different script.

Joppe
February 26th, 2005, 05:25 PM
okay.. but what script :P is there a tutorial on it.. or can you teach me :O ? Or cant i just dont do it :P ? Many questions.. needs an answer


-Joppe

Johnny64
February 26th, 2005, 05:52 PM
okay.. but what script :P is there a tutorial on it.. or can you teach me :O ? Or cant i just dont do it :P ? Many questions.. needs an answer


-Joppe

http://www.kirupa.com/forum/showthread.php?t=48852&highlight=High+score+class

Might help :D

i'm not very good at making tuts so if you have a question ask :D

Joppe
February 26th, 2005, 05:57 PM
ohhh great Johnny :thumb: =)