Scores and High Scores
GamingtilDawn
Member Posts: 104
I set up a scoring and high score system that works except the highscore wont save. I think my reset game when the player loses is erasing the score, but im not sure. Is the code for my scoring correct at least?
Sorry, I cant figure out how to just post the images hahaha
Score
https://www.dropbox.com/s/9ehxyowgmdmq15j/Screen Shot 2015-02-05 at 10.12.07 PM.png?dl=0
High Score
https://www.dropbox.com/s/95ofu6929gvmkma/Screen Shot 2015-02-05 at 10.12.30 PM.png?dl=0
Comments
Here's a demo I just made that does this: http://forums.gamesalad.com/discussion/comment/519812/#Comment_519812.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Where you have typed the word highscore...just use the letter h
Also...and it may not be required but I have a timer do to that.
Rule, timer, every.1sec, save score
Rule, timer every.1sec, change attribute, highscore to score
BE SURE TO ALSO HAVE A "Load Attribute"
Load attribute, h, highscore. Otherwise it wont matter if you do any of this because next game kaunch the highscore will not be there. Insert this into any scenes you wish the score ofmr highscore to be used.
Like I say this may not be required but when I first started using GS this was suggested and it has always worked for me.
Complete Guide to iOS Publishing {} Complete Guide to Mac Publishing
Thank you both! I got it to work with the help.