Match Based Challenges

Introduction

When you match players together, you'll have reference to other player's PlayerIDs and account variables to use in Cloud Code and use of other platform features. One of these features is challenging matched players to a private Challenge. This combination of Matchmaking and Challenge initiation ensures players are matched up in accordance to a set of rules revolving around skill level.


Matchmaking Availability? The Matchmaking feature is no longer available to games created on or after February 19th, 2019, or for games created before February 19th, 2019 that had not yet used the feature. If you require Matchmaking for your game and do not have access under your current plan, please contact us to discuss the Enterprise Pricing Tier.

Connecting the Match to the Challenge

To invite the matched up players to a Challenge:

You can test this using the Test Harness by opening multiple tabs and authenticating multiple players. Match these players up and then use the MatchDetailsRequest and CreateChallengeRequest to simulate calling them from an SDK.

Example Request

    {
     "@class": ".CreateChallengeRequest",
     "accessType": "PRIVATE",
     "autoStartJoinedChallengeOnMaxPlayers": false,
     "challengeMessage": "Welcome to this Challenge",
     "challengeShortCode": "Trigger_Chal",
     "endTime": "2015-12-30T12:00Z",
     "expiryTime": "2015-12-30T12:00Z",
     "usersToChallenge": [
     "563b4243e4b0f85acff00a69","563b4235e4b0f85acff00a22",
     "563b4235e4b0f85acff00a22"]
    }

Did this page help you? Please enter your feedback below.