- Home /
high score script?
Hello. This is the script for the scores in my game. It uses the currently selected combination of options to set a unique integer, so that each combination has its own high score.
function Update ()
{ var Arcade : String = System.String.Format("{0}{1}{2}_score", Arcade.ModeInt, Arcade.DifficultyInt, Arcade.CharacterInt);
PlayerPrefs.SetInt(Arcade, Stats.Score);
}
How would I combine it with this script from the wiki(array prefs)? I want to be able to store more than one score for each option combination so I can have a high score table. Thanks.
var myScores = new int[10];
for (i = 0; i < myScores.Length; i++)
myScores[i] = i+1;
if (!PlayerPrefsX.SetIntArray("Scores", myScores))
print("Can't save scores");
Comment
Your answer
Follow this Question
Related Questions
Organising player Score from highest to lowest? 2 Answers
Getting playerID from the Google Play Leaderboard? 0 Answers
Score Question Java Script, problem 1 Answer
live system for sword 1 Answer