Scoreboard Help Needed!
CharlieG97
Member Posts: 52
I have a scoring system that ranges from 0-1100.
I need to have a highscore feature which saves the score closest to 1000. I currently have the highest score being saved and displayed on the game's main menu but I don't know how to make scores above 1000 that are further away from the current score not count. Example:
High score 990 is worse than high score 1005, so I would want 1005 displayed. However...
High score 995 is better than high score 1010, but currently it would display 1010.
Any suggestions would be greatly appreciated
I need to have a highscore feature which saves the score closest to 1000. I currently have the highest score being saved and displayed on the game's main menu but I don't know how to make scores above 1000 that are further away from the current score not count. Example:
High score 990 is worse than high score 1005, so I would want 1005 displayed. However...
High score 995 is better than high score 1010, but currently it would display 1010.
Any suggestions would be greatly appreciated
Comments
Self attributes
Score -
Score +
Rule.
If score is < 1000
Change attribute score- to 1000 - score
Rule.
If score is > 1000
Change attribute score+ to score - 1000
Rule
If score- < score +
Add to high score
Rule if score + < score -
Add to high score
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I'm writing all the rules and I'm just stuck on one thing. With the last 2 rules where you've put "Add to high score" how exactly do I do this.
Change attribute game.highscore to ??
What do I put in place of the question marks?
Thanks.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User