Some way to attack other player base even if the other player is disconnected of the game
Some way to attack other player base even if the other player is disconnected of the game
The configuration of the ‘base’ is stored in one player account, for example, Player Read-Only Data, and when a player attacks another player’s base, you may calculate the result on the server side (Cloud Script), where the function will load 2 players’ Player Data then work out the result.
PlayFab is a service based on RESTful API, which is stateless. It doesn’t matter if the player is really online, however, it does matter that when the attack happens, the configuration of the ‘base’ is up-to-date. That’s why games like clash-of-clans decide that players cannot be attacked when they are online. There will be an update call after player close the game, to make sure the configuration of the base is refreshed.
2 People are following this question.