Game Highscore
evert
Member Posts: 266
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.
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
Comments
If you followed the tutorials, you should be close. Post a picture of your rules and behaviors.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
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
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
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?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
EDIT: I just did the debug window thing.
it gave me two times: Log(Actor: GreatJob): 0
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
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!
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
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.
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
thanks again for the great help
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
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?
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
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
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
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
GSINVENTION FREE TEMPLATES
GSINVENTION FREE TEMPLATES
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
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.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User