Score
igpxnaruto4
Member Posts: 81
How do I make it so that the game itself would have a global, local highscore? With adding names and using time for the score?
Comments
Scorekeeping
--------------Video 1-------------------
--------------Video 2-----------------
--------------Video 3-----------------
--------------Video 4-----------------
To have separate high scores you will simply need a new global attribute for each user. Use the save attribute with a specific key so that when you start the game up, the info can be loaded properly. Then when you wish to display the text you can easily call back to the global attribute of your choice. To have an attribute be constrained to time you just have to use a constrain attribute that constrains self.time of a controller actor (an actor that is just used to control certain functions) or another actor of your choice to a new global real attribute you could call "time".
If you don't mind the decimal place, you can leave it as is. If you want the decimal gone, then use the floor() function in the constrain and put the self.time inside the ( ).
Look up demos on GameSalad. There are tons out there and you'll learn quite a bit in a short amount of time.
Good luck!