question

Tom avatar image
Tom asked

Matchmaking and changing scenes

I was looking at https://learn.microsoft.com/en-us/gaming/playfab/features/multiplayer/matchmaking/quickstart and i encountered synchronization problems as soon as i wanted to move from the menu scene to game scene after matchmaking was found. I was looking around and saw that there were a lot of questions about this issue. Could you add a simple sample of moving to game scene after matchmaking? There are so many answers out there - ServerChangeScene which causes player to be NotReady and other issues so please give us your best practice

Matchmaking
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

·
Neils Shi avatar image
Neils Shi answered

Could you tell us more details about the “synchronization problems”? Typically, if you have hosted the server to PlayFab and enabled the server allocation (https://learn.microsoft.com/en-us/gaming/playfab/features/multiplayer/matchmaking/multiplayer-servers#activating-server-allocation-for-the-queue) for the matchmaking queue, then after the matchmaking is complete, player can call API GetMatch (https://learn.microsoft.com/en-us/rest/api/playfab/multiplayer/matchmaking/get-match?view=playfab-rest) directly to get the server's IP and port. After that, then you can load the game scene and connect to the server via IP and port info. As for how to change scenes, the implementation of different game engines is different, and you need to consult the professional support of the corresponding engine.

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.