Any good tutorials for making a high score board?
I'm trying to find out how to make a high score board not just a single high score to be beat. Pretty much the traditional arcade style.
I searched around and I can't seem to find what I'm looking for, does anyone know of a good spot?
Thanks!
I searched around and I can't seem to find what I'm looking for, does anyone know of a good spot?
Thanks!
Best Answer
-
tatiang Posts: 11,949
I'm not sure about an existing tutorial or demo, but I would think you'd want to have 8 (or any number of) high score actors that display text. Then, have 8 game attributes (integer or real) called game.highscore1, game.highscore2, etc. Have a separate actor that sorts the scores: When game.score > highscore1 ... change attribute game.highscore8 to game.highscore7, change attribute game.highscore7 to game.highscore6, ..., change attribute game.highscore1 to game.score; Otherwise When game.score > highscore2 ... change attribute game.highscore8 to game.highscore7, ..., change attribute game.highscore2 to game.score; etc. for each When game.score > highscore#.
Edit: Here's a demo I made with 3 high scores: http://dl.dropbox.com/u/19602014/High Score List.zipNew to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
That's seriously awesome, thanks!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User