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 ]
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 ]
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.
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.
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
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 ]