Using PlayFab Service in Construct 2/3

Favourite 5 favourites
Tutorial written by agittmOriginally published on 19th, May 2018 - 2 revisions

Introduction

Hi fellow devs! Welcome to my tutorial! In this tutorial we will learn how to connect our Construct 2 project to PlayFab services.

PlayFab is similar with GameSparks. You can compare their feature on other site. In this tutorial, i will only explain how to use PlayFab Service in Construct 2 or Construct 3 project.

As you know, PlayFab doesn't have any official plugin for Construct 2/3, so in this tutorial I will teach you how to connect your construct 2 project to PlayFab service without 3rd party plugin.

You can learn more about PlayFab from their official site..

As a side note :
This tutorial only cover the core function of PlayFab, if you're interested about how to implement PlayFab Leaderboard, check out this template.

Step 1 - Register, Create your game, get your Title ID

First of all make sure you already have a PlayFab dev account. If you don't have one, you can register at this link.Register PlayFab Account


You will be asked to create a new Studio, give it a name, and then create a new Title/Game.Create a new Title
Open full size image

Fill all the required fields. Then, click continue.
Now, look at your newly created Title, and then copy the Title ID.Game Title ID

Step 2 - Download PlayFab SDK

Head over to PlayFab SDK Download, click the Download PlayFab SDK button.

Extract the downloaded file, then Find PlayFabClientApi.js in folder \JavaScriptSDK-versioned\PlayFabSdk\src\PlayFab\

Rename it to playfabclientapi.js (lowercase) so the engine/browser will find the file easily.

Share and Copy this Tutorial

You are free to copy, distribute, transmit and adapt this work with correct attribution. Click for more info.

Comments

0
marmis 113.5k rep

Nice tutorial!!!!!

this could be an alternative to storing user data.
I hope there will be a playfab support plugin.

Sunday, May 20, 2018 at 12:20:12 AM

Leave a comment

Everyone is welcome to leave their thoughts! Register a new account or login.