The Daily Click ::. Forums ::. Klik Coding Help ::. How to make 2 diffrent High Score lists?
 

Post Reply  Post Oekaki 
 

Posted By Message

Zub



Registered
  02/10/2002
Points
  221
21st June, 2004 at 09:30:42 -

In my game, I want a 1 player list and a 2 player list. How to make this? I am using The Games Factory.

 
X( "p1" ) - 24
TGF user, working on simple projects sometimes. Current Project: Farm with Chickens.
Also a member of IGD - Insane Geme Design [ igd.dongrif.com ]

Arjan Burggraaf [Eggy]



Registered
  04/01/2002
Points
  1248
22nd June, 2004 at 03:12:34 -

It's possible in MMF. Look in my tutorial (sorry only MMF) to learn how to make multiple highscore lists.

 
n/a

Zub



Registered
  02/10/2002
Points
  221
22nd June, 2004 at 07:05:00 -

So, there is no way to do it in TGF?

 
X( "p1" ) - 24
TGF user, working on simple projects sometimes. Current Project: Farm with Chickens.
Also a member of IGD - Insane Geme Design [ igd.dongrif.com ]

Arf :: FPP Games



Registered
  15/05/2002
Points
  1364
22nd June, 2004 at 12:07:14 -

What have you tried so far? Just have two different lists in two different frames and make sure they have different names.

 
n/a

Arjan Burggraaf [Eggy]



Registered
  04/01/2002
Points
  1248
22nd June, 2004 at 14:58:11 -

I think it's also possible in TGF.

I've used the following MMF extensions:

Used MMF extensions:

Edit ( with this you can type in your name )
File ( for copying of ?.hsc to temp.hsc and deleting of temp.hsc (? stands for the difficulty)
INI ( this if for writing/reading of the highscores to/from the hsc files )

The algortithm for saving the highscores is difficult to explain.

Here some comments from my example:

---

Now that Alterable Value B of Player is 1 the score of the player will be compared with the lowest highscore of the difficulty.

If the player's score is lower than the lowest highscore then the player can't get on the highscore list.

But, if the player's score is bigger than the lowest highscore then the player can type his name and gets on the highscore. Those events are listed in the events below the ones you are viewing now.

---

If the score of the player is higher than the highest score then the player's score will be saved as the first score.

The other scores are placed one place lower, so score 2 goes to 3 and score 9 to 10, but 10 disappears from the highscore list.

First event: score 1 - 5
Second event: score 6 - 10

data\temp.hsc will be copied to data\?.hsc and data\temp.hsc will be deleted (? stands for the current difficulty)

---

The easiest way to learn all this is by downloading my example and to try it with MMF.

 
n/a

Noyb



Registered
  31/05/2004
Points
  1117

VIP Member
22nd June, 2004 at 16:53:34 -

Put both score lists on separate frames. On both High Score object's Setup, uncheck "Check on start of frame." Then, in the events, put the following code:
Player 1's high score list:
One action while event loops + High Score(Player 1 has a hiscore) --> High Score(Ask Player 1's name)
Player 2's high score list:
One action while event loops + High Score 2(Player 2 has a hiscore) --> High Score 2(Ask Player 2's name)

...Never mind. This doesn't work.

Image Edited by the Author.

 
"Omg. Where did they get the idea to not use army guys? Are they taking drugs?" --Tim Schafer on originality in videogames

Zub



Registered
  02/10/2002
Points
  221
22nd June, 2004 at 17:33:07 -

Thanks for the answers but i think I keep it to one list. I think the problem is that 2 players has the same score(player 1 score), itīs co-op. Anyway, the game is saved stand alone now, and it should be released this week.

 
X( "p1" ) - 24
TGF user, working on simple projects sometimes. Current Project: Farm with Chickens.
Also a member of IGD - Insane Geme Design [ igd.dongrif.com ]
   

Post Reply



 



Advertisement

Worth A Click