Game Highscore
Hi all,
I have a game and i want to save highscores,
I followed some of the tutorials, but it seems not to work.
I want my game to save my score or highscore when i reach a certain point (endpoint)
My score is triggered by how many times you move and this will be shown on your screen. It it doesn't save, thats how it is now and should be. But when you reach endpoint than it should save your highscore.
I probably misplaced something but i have no idea what.
Thanks in advance for the help.
I have a game and i want to save highscores,
I followed some of the tutorials, but it seems not to work.
I want my game to save my score or highscore when i reach a certain point (endpoint)
My score is triggered by how many times you move and this will be shown on your screen. It it doesn't save, thats how it is now and should be. But when you reach endpoint than it should save your highscore.
I probably misplaced something but i have no idea what.
Thanks in advance for the help.
Comments
If you followed the tutorials, you should be close. Post a picture of your rules and behaviors.
The first one is the code inside my bestscore actor.
Second one is the the actor that counts the score (i have two of these)
The last one is the one that should trigger the feature to save the highscore.
This is my endpoint. If my actor does NOT reach this point it should not save (like it is now), but when he reaches it, it should save.
In my image i have no game.score in my change attribute. But i have it here. Sorry about that.
Thanks again
The other thing you should do is start to add some Log Debugging Statements and then watch the Debugger window to see if those parts of your rules are triggering. For example, inside of the Timer in the bottom screenshot, add a statement that displayed game.score and one that displays game.Bestscore (be sure to select them from the attribute drop-down menu). When you do that, what do you see in the Debugger window?
EDIT: I just did the debug window thing.
it gave me two times: Log(Actor: GreatJob): 0
i did it because of 1 of the tuts on youtube did it so i tested it.
But i deleted it now and it worked!
thank you!
But actually not, because i want it to save when the the highscore is smaller than the previous highscore. Not when its greater
The goal is to reach the endpoint in as little as possible moves.
thanks again for the great help
as in this post my highscore problem is fixed.
Now i would like my game to save the lowest score and not the highest when it reaches my end point.
Braydon_SFX gave me a tutorial file (thanks for that one) but i was not able to find how it works and how to get it in my game.
thanks
@tatiang maybe you could give me some extra insight on this matter?
I also changed the attribute value of bestscore to 1000.
Now it works 2 times and than my bestscore/highscore changes to 0
And i have no idea how and why.
@tatiang @braydon_SFX
Gsinvention.com
Go over to the free demos section and at the top you'll see a save top 10 high scores with tables.
Download that and have a look
When game.score < game.bestscore
change attribute game.bestscore to game.score
You'd want to set game.bestscore to a high number such as 9999 as long as that's not a score you can ever start with.