Help Sorting High Scores...
BarkBarkCo
Member Posts: 1,400
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
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
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).
any luck getting it to work in your game? I'd love to see your results!
If i ever use it and release the game I'll let you know
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.