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:

Call the MatchDetailsRequest to access the 'Opponents' Player array and access the ID string variable.

Call the CreateChallengeRequest. For the AccessType use PRIVATE because you'll want to invite players from the Match and not allow any other players in.

For the string array Users to Challenge use the IDs you accessed through the MatchDetailsResponse.

Configure the rest of the Challenge and send the CreateChallengeRequest.

The players invited should receive messages notifying them they've been invited. (Use listeners to capture these).

When all player's have replied by either accepting or declining, the Challenge is then started.

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.