The Daily Click ::. Forums ::. Klik Coding Help ::. Hi-Scores
 

Post Reply  Post Oekaki 
 

Posted By Message

Jr. Tech



Registered
  20/07/2003
Points
  7
20th July, 2003 at 21:21:41 -

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!

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
23rd July, 2003 at 20:09:04 -

Use an INI object instead to save the high scores, it'll take more code but it's a lot more flexible.

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Jr. Tech



Registered
  20/07/2003
Points
  7
25th July, 2003 at 11:12:13 -

Could you give me an example? I'm clueless.

 
If it ain't made by Jr. Tech, then it ain't a game!

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
26th July, 2003 at 08:04:11 -

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

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2723
27th July, 2003 at 08:43:36 -

An article search might help you further.

 
Image jenswa.neocities.org
   

Post Reply



 



Advertisement

Worth A Click