High Score attribute doesn't work
gineepig
Member Posts: 26
I am making an endless runner in which the score works fine, so I made another integer attribute, highscore, and put in an actor which is always on the screen in the scene to change game.highscore to game.score whenever score is greater than highscore. And I even put an actor that displays game.highscore on the screen at al times, but it remains at 0. I have tried putting the rule in almost every actor in my game you could imagine, still always 0. Any thoughts? Also, I don't want to use a table because I made a custom font.
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Rather than changing the highscore to gamescore, *constrain* it to gamescore.
Or, you can calculate it at the end of a round/game over:
If score is greater than high score, change attribute score to highscore
Save highscore.
Hope that helps,
QS =D
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Are you sure the actor is actually spawning when the game starts?
Why not create an actor slightly off scene with your rules that is always there?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User