Leaderboard Not Working - Cocoon Plugin

0 favourites
  • 13 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Hi All

    I am trying to integrate leaderboard in my game by following this tutorial - https://www.scirra.com/tutorials/4802/c ... s-services

    Work Done

    • I added cocoongoogleplaygames request login under system > On start of layout
    • On same event sheet, added the following
    • I added the submit score in the game event sheet
    • Exported game and compiled it using cocoon.io but ensured the required plugin and game services ID added

    Challenge Faced

    When i start game, I don't get any prompt for google login hence no leaderboard.

    Please any one know what am doing wrong?

    Thanks

  • I was really hoping to get a help from the forum. I know everyone is busy but please if you can, it will be appreciated.

    I just need to figure out why the google login prompt isn't showing hence no leaderboard.

  • Your implementation looks ok. I think the issue is that you request login "On start of layout". AFAIK the first login request must be manual so under "On tap" condition. Once user logs in then he will be automatically logged in each time he starts the game.

  • Your implementation looks ok. I think the issue is that you request login "On start of layout". AFAIK the first login request must be manual so under "On tap" condition. Once user logs in then he will be automatically logged in each time he starts the game.

    ah ma ma mia, I see what you mean. Any example of such implementation?

  • Just put "Request login" action under some "Log in" button (On tap action, On touch may not work - I'm not sure) in game.

  • Thanks very much for your help. I will try that out.

    Just one more request, I exported game to cocoon.io and installed on my phone. When I get to the game play screen, I see both top and bottom a black screen covering them. Have you come across such in past?

    https://cdn-standard.discourse.org/uplo ... 55x500.jpg

  • It's because you use Letterbox scale. You should use Scale Outer instead. I wrote a tutorial about that which you can find here http://tobyr.wtfgamesgroup.com/what-is- ... bile-game/

    Note that the resolution mention in the tutorial is not very important, it's just about ratio so all you need to do is to center the screen correctly.

  • Yes I am using Scale Outer for fullscreen in browser. See my settings

    https://snag.gy/yPVbje.jpg

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Then I would guess that you lack graphic elements on top and bottom? Try to preview in C2 and resize your browser to have the same ratio as the mobile device you're testing on and see if there are black bars as well.

  • I thought that was the case before but its fine on all browsers and NW.js. Could the below level settings be the reason, because the loader screen and menu screen are fine except all level screen.

    https://snag.gy/YFRShx.jpg

  • Can you post a screenshoot of the same layout (as you posted with black bars) with C2 preview?

  • I have PM to you since I am still working on the graphics.

  • The code looks fine like said, what is about your setup on Google Play?

    Have you linked an apk file to your game service?

    Only then it will work, and only with an apk with the same bundle id / certificate as the associated one.

    Regards

    Andy

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)