Jump to content
OhhBaby!

Leaderboard Template

Recommended Posts

Hi,
Cocoon's Googleplay and Gamecenter plugins don't have some features. I want use Construct 2's official GooglePlayGames and GameCenter plugin.


Firstly this link broken.

image.png.2b4789bacf9d02b49e1ff802d45a7d9e.png

I have some questions.
1.) if I use Construct's official plugins (GooglePlayGames and GameCenter ).

-> Can I use Cocoon compiler?
-> What I need add in cocoon?
This?
image.png.74c4c058cc42d5487497a213e03fae77.png
or This?
image.png.951d1a3ddaef303c2fbec9a88b5fe010.png

2.) Same question about Cordova Game plugin.
-> Can I use Cocoon compiler?
-> What I need ad in cocoon?



 

Edited by OhhBaby!

Share this post


Link to post

Hi @OhhBaby!

Thanks for the hint. I'll fix the dead link with the upcoming update of  the Leaderboard game template.

Your questions:

1.) if I use Construct's official plugins (GooglePlayGames and GameCenter ).

No. The official leaderboard plugins are for web games (HTML5). This will not work if you built it with Cocoon.

2.) Same question about Cordova Game plugin.

However the Cordova Game plugin will work in cocoon. For this you must install following plugin to your project at cocoon (config.xml). You just can copy & paste the code below into your "config.xml" tab at your cocoon settings.

        <plugin name="cordova-plugin-game" spec="https://github.com/cranberrygame/cordova-plugin-game.git">
            <variable name="APP_ID" value="REPLACE_WITH_YOUR_ID"/>
        </plugin>

Let me know if you have any further questions.

  • Thanks 1

Share this post


Link to post

Hmm. But I read in manual page. It should work with cordova 🤔
https://www.scirra.com/manual/175/google-play
 

Quote

Extra steps for Cordova

Google Play Game Services are designed to work in a web browser, but it's possible to also configure it to work in Cordova (e.g. when exporting to mobile via PhoneGap Build or the Intel XDK). To set it up for Cordova you'll also need to:

  1. Fill in the Client secret property with the value from the Google Play Developer Console.
  2. Add http://localhost as one of the redirect URIs in the API console.
  3. Remove any uses of On auto-sign in failed. It never triggers in this mode, so you will need to rely on having manual sign-in instead.

 

Share this post


Link to post
5 minutes ago, OhhBaby! said:

Hmm. But I read in manual page. It should work with cordova 🤔
https://www.scirra.com/manual/175/google-play
 

 

Sorry, didn't know that actually. But this seems to be very uncomfortable, doesn't it? Using Cordova Game is much easier. I totally agree with you that the cocoon plugins lacking a lot of essential features. So the Cordova game plugin is the better choice for the leaderboard services.

However if you want to go with the default plugin by construct, you must do the steps mentioned in the manual. I never have done that, so I can't help you on that, sorry.

All best,

Andy

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site, you agree to our Privacy Policy, Terms of Use, We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. & Guidelines.