highscore tables/one score system for different levels/lowest 'high'score

evertevert Member Posts: 266
edited March 2014 in Working with GS (Mac)

Hi all,

I'm looking for a way to save my highscores for every level individually.
At the moment i have a highscore attribute that saves my highscore.

But when someone has a better score in level 03 that score saves over the one from 01 and 02.
I would like my score to save into a table so i have a different highscore for each level.

BUT!! It has to save the lowest score! for instance if you have 65 in the first try in level 01,
and 50 in your second try at level 01. it has to save 50! so the lowest highscore is the best score. (highscore is saved when reaching an endpoint)
(I had a semi fix for this with one attribute and no tables, but have no idea how much it would change when my scores are in tables)

I know there is an easy way to do this, but i can't figure out how.
The tutorials on the net are not working and the one on the arcade won't play for some reason.
There was a .zip file with one of the youtube tutorials but the link seems to be broken.

So i have some bad luck find out how to do this.

so what do i want again?

  • different highscores for different levels without making a "million" attributes.
  • when my highscore saves, it has to save the lowest score.

Thanks!
Evert

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    You would definitely use a table. Each row should contain a cell with the current low score. At first, you'll want to populate these with some ridiculously large value like 999999. Then in your rule, you would do When game.score < tableCellValue(tableName,game.level,1)... change table value table: tableName row: game.level col: 1 value game.score. Save Table tableName.

    As long as game.level contains the value of the current level (1, then 2, then 3, etc.) that should work.

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

Sign In or Register to comment.