question

Sebastian alejandro cruz jara avatar image
Sebastian alejandro cruz jara asked

How to attack other player base?

Some way to attack other player base even if the other player is disconnected of the game

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

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.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.