How do I make an online leaderboard

Get help using Construct 2

Post » Sat May 27, 2017 8:02 pm

Hi guys i have a racing game but i dont know how to make an online leaderboard without anyplugins does anybody have a working capx? 8-)
Image
B
24
S
13
G
11
Posts: 279
Reputation: 8,689

Post » Sun May 28, 2017 1:26 pm

Hello

You need to use database, mysql Table, php and ajax !

You save the score of all the players and when you need your leaderboard, you do mysql request to retrieve these informations from your table.
B
7
S
1
G
2
Posts: 23
Reputation: 1,403

Post » Sun May 28, 2017 1:45 pm

Scirra Arcade, Google Play, Steam, ... they all have leaderboard features built-in. It depends what is your target platform. If you want a custom (independend) leaderboard then as @swad said you need to store it on your server so you can use AJAX C2 plugin to communicate with PHP, and you will have to make a PHP script that will handle requests and storing/fetching data to/from the database (MySQL is the most common choice).
ImageImageImage
B
27
S
16
G
74
Posts: 981
Reputation: 41,681

Post » Sun May 28, 2017 2:50 pm

@BackendFreak
Thank you for completing my answer
B
7
S
1
G
2
Posts: 23
Reputation: 1,403

Post » Sun May 28, 2017 3:14 pm

@swad @BackendFreak HI guys thanks for your help this is my game and i have managed to add scirra arcade leader board to it. Play it and see https://www.scirra.com/arcade/racing-ga ... ress-18241
Image
B
24
S
13
G
11
Posts: 279
Reputation: 8,689

Post » Sun May 28, 2017 3:25 pm

@LaurenceBedFord
Nice ! Now, you can try to make it multiplayer !
B
7
S
1
G
2
Posts: 23
Reputation: 1,403

Post » Mon May 29, 2017 6:08 am

@swad i will try
Image
B
24
S
13
G
11
Posts: 279
Reputation: 8,689


Return to How do I....?

Who is online

Users browsing this forum: Lancifer, Sup with that? and 69 guests