|
I just want a simple highscores board, that will appear when the game is over... e.g.
(comments are locked)
|
|
Server based highscores: http://www.unifycommunity.com/wiki/index.php?title=Server_Side_Highscores Pretty straightforward. @MikezNesh For a local highscore save data on PlayerPrefs (if it's not full) Do this:
To display the high score set up a GUI to display the text and int in a table and store the information from player prefs in variables. Initialise the high score table by calling AddScore at the start of your game.
Alternatively use PlayerPrefsX from the wiki: http://www.unifycommunity.com/wiki/index.php?title=ArrayPrefs One trick I use for storing a bunch of stuff like that in playerprefs is just to use JSON. That way I can just serialize a hash table to a string and store it that way.
Jun 27 '10 at 05:51 PM
Tetrad
WIll this score work for iPhone too?
Jun 28 '10 at 12:48 PM
MikezNesh
yup, it'll work no problem
Jun 28 '10 at 08:36 PM
spinaljack
I still can't get my head around this... is there a tutorial or something out there on the inter webs?
Jun 30 '10 at 01:23 AM
Jason Hamilton
How would I set up a GUI table?
Jun 30 '10 at 05:56 AM
MikezNesh
(comments are locked)
|
|
How could I revert it to? name01 85s name02 101s name03 150s . . . I mean from the lowest value to the highest?
(comments are locked)
|
|
How could I revert it to? name01 85s name02 101s name03 150s . . . I mean from the lowest value to the highest?
(comments are locked)
|
|
I used the code above and I feel like it goes in to a loop uncontrolled. Here is an example of what happens. If the player gets a new score that is higher then the highest score then it wipes out the old score and replaces it with the highest. So: Dan : 75 Dan : 50 Dan : 25 Dan : 25 Dan : 25 Becomes: Dan : 100 Dan : 100 Dan : 100 Dan : 100 Dan : 100 are you sure you haven't forgotten the newscore = oldscore; part in the loop? it makes sure the next time the loop is called it will be using the score that got overthrown by the new highscore, by putting it in the newscore variable
Oct 27 '12 at 02:49 PM
SomeRandomGuy
(comments are locked)
|
|
Hi this is a very simple high score system for saving a int score and a name. Hope the code is clear to check if this work check the following script, just add this to a game object and you will be able to check its functionality This script is working fine on pc but when used on an android device it only saves (or shows) 1 score, the first score. What might be the problem here?
Nov 13 '12 at 06:34 PM
Kennnnny
it works fine for me in both the platforms... how many times you are saving the score???
Nov 13 '12 at 06:38 PM
flamy
I put a restriction of 5 entries for my highscore. It doesn't work anymore when I try to save a 2nd score so no I don't think the problem is that I'm saving 100s of scores
Nov 13 '12 at 06:49 PM
Kennnnny
Ok after some more testing it seems that if I try to add a new score that's lower than the scores that are already in the list and the list isn't full yet, it doesn't get added.
Nov 13 '12 at 07:29 PM
Kennnnny
hi the bug is fixed now, sorry for late reply, i dont follow old posts =/
Nov 23 '12 at 01:12 PM
flamy
(comments are locked)
|
1 2 next page »

I'm interested in this too. But I am more for a LOCAL scoreboard if anyone wants to tell how to do that too.