I made an arcade game. Each game has it's own hi-score table, each on a seperate level, each with a unique name. My problem is that all the scores are saved on each hi-score table. I've tried making a seperate application for each game/hi-score table and adding them into the main game, but the scores still get saved to each table. Any suggestions? I could have it where the name of the game appears next to the players name, but I couln't figure out how. If important, I'm using a TGF Pro 32-bit. Thanks in advance!
If it ain't made by Jr. Tech, then it ain't a game!
I'm not going to tell you how to use the INI object, that just takes too long, and there are already several explinations on DC... Here is the short version...
- You store information in items
- Items can be stored in groups
- Two items cant have the same name unless they're in different groups
- Two groups cant have the same name
What you need to do is set the group to something like "High Scores", then, if you want your game to have 10 high scores, create the items:
1_name
1_score
2_name
2_score
etc
with the player details.
When a user dies, use a fast loop to read each of the scores, and if the current players score is greater than any of the scores while it is going through the loop, then shuffle all the scores below the current score down one slow (deleting the last score) and add the new score to the ini.
Mike
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert