How can I make a game raing system similar to Roblox’s rating system. I am wanting to figure out how i can save this globally, and how i can check when a player rates one of the places inside the starterplace.
My game works by having multiple games you can play after joining a lobby, and i want a global rating system for the players to use
I experimented with it earlier, but it didn’t seem to work. I also would like to know what time to save/load the data because if i save on exit and save on leave it may not work. (i think the issue was the time i saved and loaded)
That doesn’t save to a player, it saves to their UserId which you use to identify whose data it is. You could just save it to the game ID or something similar
Say each game you’re mentioning they can play has a name or ID. Instead of saving it to a player’s UserID like you normally would, you could just save it to the game ID or whatever you’re using to identify it and then use that key.
Yes, ok. I just have one last question. How often should the data save/load, because if i do it when player joins/leaves (let’s say another player rated a game), the player that just left would override that other player’s rating
I’d save it as soon as the rating is changed and no time else. This is when data stores get rough to use imo because of these inconsistencies, and I’m not sure if I can give the best advice.