Hi there! I’m teaching myself Unity, and just figured out how to get a high score saved under Player Preferences. However, I notice that when being played in a webplayer, the high score stays local to each machine-- therefore I can’t challenge people to beat my high score.
Is there a simple way to ‘host’ a high score online? (right now the files are hosted through my personal website). I’ve seen people talk about doing stuff with SQL databases, but that seems needlessly complicated. Or maybe it isn’t? Thanks in advance!
Create a simple MySQL database that contains fields for:
The User
Their score
The time the score was logged
Then create a simple PHP file that retrieves input from a GET parameter, use those parameters to check the database for the user (or create him/her) then update the score and the time.
Done!
But keep in mind this is very simple method of doing so, and it would be best to add some sort of authentication method to tighten security and keep people from cheating.