How do I add google leaderboard

Get help using Construct 2

Post » Sat Apr 18, 2015 10:44 am

I am trying to add google leaderboard to my game.

can any one tell me how to do that........?

the compiler i use is intel xdk
B
6
S
1
Posts: 24
Reputation: 452

Post » Sat Apr 18, 2015 9:03 pm

Download the Phonegap plugin by cranberrygame. you need the "Phonegap Game: show leaderboard and achievements " one, It works with intel xdk - crosswalk. I don't think the google play plugin that came with C2 works with crosswalk.

plugins-cordova-related-c2-plugins-crosswalk-list_t109586 "Free"

Note: The plugin will not work in the web browser and you will a need Google developer account.

1. Setup up the leaderboard and achievements in the google play developer console.
2. Get your App ID - from Google
3. Install and add the phonegapGame plugin to your game - how-to-install-plugins-and-behaviors_t63985
4 under the plugin properties add the app ID.
5. On the Event sheet add Events/actions for login, submit score, show leaderboads, etc..
6. Export your game
7. Open the export folder
8. open intelxdk.congfig.additions.xml in notepad
9. change the the value to your google app id , on this line <intelxdk:param intelxdk:name="APP_ID" intelxdk:value="Your Google APP ID" />

Now you can import it in to XDK and export a APK.
B
20
S
3
Posts: 67
Reputation: 1,074

Post » Sun Apr 19, 2015 5:32 am

@Knight05 thanx man..:-)
B
6
S
1
Posts: 24
Reputation: 452

Post » Mon May 04, 2015 8:39 am

@Knight05 hey i did according to the tutorial. which u told. But its not working. do i have to add google play store plugin also..........?
B
6
S
1
Posts: 24
Reputation: 452

Post » Tue May 05, 2015 11:26 pm

You might need to upload a beta or alpha app to link it to the game services. Did you error message?
B
20
S
3
Posts: 67
Reputation: 1,074


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests