Any good tutorials for making a high score board?

Goodnight GamesGoodnight Games NYCMember, PRO Posts: 184
edited April 2012 in Working with GS (Mac)
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!

Best Answer

  • tatiangtatiang Posts: 11,949
    edited April 2012 Accepted Answer
    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.zip

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Answers

  • Goodnight GamesGoodnight Games NYCMember, PRO Posts: 184
    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.zip

    That's seriously awesome, thanks!

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You're welcome!

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.