Help Sorting High Scores...

BarkBarkCoBarkBarkCo Member Posts: 1,400
edited November -1 in Working with GS (Mac)
I built a simple game that keeps track of your last 3 high scores. I feel like i'm jumping through some hoops to sort the current session's score to the correct spot in the high score list.

Basically, I have an actor that runs a few "change attributes" for each spot in the high score list, and then switches scenes to a listing of the high scores when clicked/touched.

1. Change High3 to max(High3,Current)
2. Change High3 to min(High3,High2)
3. Change High2 to max(High2,Current)
4. Change High2 to min(High2,High1)
5. Change High1 to max(High1,Current)
6. Reset Current to 0.

Any shortcuts/tips I should know about? Thanks in advance!

This game is available as a template for anyone wanting more info on my method:

http://gamesalad.com/game/play/52365

Comments

  • RHRH Member Posts: 1,079
    Wow, so much simpler than my method

    Thanks a lot for sharing this, I will have to take a look at the project and see what it works like in my game later :) (i'm working at the moment).
  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    roryyror,

    any luck getting it to work in your game? I'd love to see your results!
  • RHRH Member Posts: 1,079
    Yeh, it worked perfectly :) although I wasn't ever going to release that game or anything, it was just to mess around testing stuff, not sure if i have the game anymore :P

    If i ever use it and release the game I'll let you know
  • schlorfschlorf Member Posts: 1
    for some reason its not working for my gam :/ it wont desplay the text on the highscore page
  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    @schlorf,

    I'll take a look* if you want. Otherwise, we will need a little more detail as to what is/isn't happening.

    *email your zipped *.gameproj file to barkbark00 at gmail dot com.
  • ssyedssyed Member Posts: 1
    Can You please explain a to z on how to do this
  • anithmukanithmuk Member Posts: 235
    Way to revive an 8 month old thread...no seriously this template's actually gonna help me :)
Sign In or Register to comment.