question

MoonHeonYoung avatar image
MoonHeonYoung asked

some question

I want to implement some features, but I can't think of a way.

1. How to prevent duplicate logins of players

(One for app player, one for smartphone)

If I have logged in to one, is there any way to prevent the other from logging in?

2. How to get the player's total playtime

-The timer should only work when you connect to the game.

When the game ends, the time does not pass,

is there a way to get the total time played?

When implemented as a client, there may be problems such as speed hack.

Can you implement this in cloud code?

3. Player's login status (how to know whether online or offline)

4. How to know how many players are currently using the game

(Total number of players currently)

thanks in advance

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

·
brendan avatar image
brendan answered

Most of these actually have threads on this forum:

1. https://community.playfab.com/questions/382/206721757-How-to-prevent-duplicate-login-.html

2. https://community.playfab.com/questions/259/206200948-Analytics.html

3. https://community.playfab.com/questions/16003/friend-list-get-online-status-or-last-activity.html

4. This is related to 3. Since there isn't a socket connection to the client, we don't know whether the player is still in the game/app. So you could estimate concurrency based on player activity and average session times, or using the https://docs.microsoft.com/en-us/gaming/playfab/api-references/events/client-focus-change event.

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.