KENYONB's Recent Forum Activity

  • If I select Publish in Game Services will this make the game live? I don't want it live yet as I'm still testing.

    Publish Game Services then make sure you test with a Signed APK, not a debug or unsigned APK.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Did you publish the Game Services for the game? In the Google Play Cunsole, click on Game Services, then you should see the name of your game and under Status it should say Published.

    Also, even if everything is set up correctly, I have noticed serious lag with requesting score, submitting score, and then after you've logged a new high score, showing the leaderboard.

  • Google Play Services (Android) and Game Center (Apple) are different/separate.

    Refer to Google Play Game services setup instructions here:

    https://www.construct.net/make-games/ma ... oogle-play

    and Game Center setup instruction here:

    https://www.construct.net/make-games/ma ... ame-center

  • Hey, I did that, but it still doesn't work. Did you link the app with Web or with Android on google console? And did you do anything special to the leaderboard on google console, other that the obvious steps of creating it? Also it seems that the auto sign In doesn't work on the phone. On preview I allowed pop-ups and it works here, but on the phone it seems to be loading, but nothing shows.

    I linked the app with Android, not Web.

    I created the leaderboard then published it. Make sure it says "Published" in upper right. Other than that, that's all I did.

    Once I got sign in to work, the pop-up showed asking which account I wanted to sign in with, i selected, then it was done. I haven't seen it since. Every time I play, the status bar and navigation buttons show briefly, then disappear. I tested on another device and it only asked for sign in once, and then I'm signed in each time I play.

  • KENYONB if the app is crashing there's a good chance there's a bug in whatever action your using, could you open a bug report for me with your project?

    I just need the logic pertaining to Google Play, you can remove the rest. Also you can remove the APP_ID's etc. as well. That way I can test for any bugs and let you know if there's a better way round to do it <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Silviu Not a bad suggestion, but it normally takes me a little while to getting around to writing tutorials and it sounds like quite a time consuming one to write. I'll put it down on the to do list anyway.

    Thanks Nepeo I opened a bug report:

    https://github.com/Scirra/Construct-3-bugs/issues/1484

    Please let me know if you have enough info. Everything else in the game works fine, so not sure you need the whole project. I just need clarification on how to call for hiscore and set text.

  • I understand people are finding some of the new requirements a pain, I would like to say that I also find them pretty tedious. Just so everyone is clear:

    - APK files must be signed

    - You must supply your SHA-1 certificate signature in the Google Play Developer Console

    - The Google account you are testing with must be listed as a tester in the Google Play Developer Console

    If any of these are not done, when login is called it will briefly show the Play Games dialog, then it will vanish. These 3 things are required by Google (not by us), and any application that wants to use the Play Games service on Android must fulfil them.

    The reason why they were not previously required was because we used the Web API on all platforms, and the requirements are a lot slacker for the Web API. Unfortunately Google no longer allow you to use the web API within a WebView for security reasons.

    There are currently no known issues with the plugin. If you are experiencing a bug that isn't a sign in related configuration error then please open an issue on our bug tracker and I will look into it ASAP.

    Thanks for the reply

    I've managed to get auto-sign in to work, set score, and show leaderboard, however I am having issues trying to load the players high score and replace a global variable. No matter what I try, it crashes my game.

    How should I go about doing this? Can you let me know the order of events to do the following:

    -Load the player's own high score

    -if high score (loaded above) is greater than global variable "GooglePlayHighScore", replace value in global variable variable

    -set a text field to global variable "GooglePlayHighScore"

  • >

    > The manual notes to use APP ID for the GAME ID, and that is all that is required, but I added APP ID in APP ID and GAME ID and included the CLIENT ID anyway.

    >

    > APP ID and CLIENT ID can be found by going to Google Play game services, Linked Apps, and scrolling to the bottom.

    >

    > Click on the Google Play plugin under project in left column in Construct 3, enter the info in the properties column on the left, then give it a go.

    >

    Hey thanks for this. I managed to make it Sign In automatically when I open the game. I see that you managed to make the Leaderboard work. Could you please tell me a bit about that? At the end of the game I do "submit score to leaderboard" and then I have a button which, on tapped, should "request public all-time hi-scores from ...". It seems that the submit part fails (I tested this in preview). I uploaded my game on Google Play Console, linked it to Android and Web app and I used in Construct 3 the Client ID from the Web app. As URLs I have https://preview.construct.net https://preview.construct.net/local and http://localhost. The app is signed and it can be well downloaded from Google Play. I guess I am still missing something from the Google Console setup. Any help would be greatly appreciated.

    Great job getting your game to sign in.

    For the Leaderboard, here's what I am doing. And just for reference, this is an endless runner game.

    I set the score from a global variable when the player dies touch a sprite. I use the global variable for the score, leave tag blank, and then enter my leaderboard ID. Here is the event:

    + Player_move: On collision with NAME_OF_SPRITE

    -> GooglePlay: Submit score YOUR_SCORE_GLOBAL VARIABLE (tag "") to leaderboard "YOUR_LEADERBOARD_ID"

    Then to show the leaderboard, I have a graphic with a trophy, when the player clicks it, it shows the GooglePlay leaderboard that the score was submit to. Here are the events:

    + Touch: On touched NAME_OF_SPRITE

    -> GooglePlay: Display leaderboard "YOUR_LEADERBOARD_ID"

    Remember, in order to test, you need to sign the APK. So export as Android project, sign, and then install and test. Hope this helps.

  • >

    > > It's not an issue with the order of events. The sign-in basically fails. As a test I placed an -> on auto-sign in failed-sign-in event on the title page of my game and it is a continuously repeating instance of how you describe it: a dimming of the screen and the notification bar coming visible but nothing happening. Thus, it has to do with the setup of the google play plugin not the order of events.

    > >

    >

    > Well, I got the auto-sign in to work! It loads the sign in screen with my avatar and confirms sign in like other games.

    >

    > I left my order of events as they are in my previous post above. I have App ID and Game ID and Client ID entered, so not sure if that makes a difference having all 3 entered. And I also signed the APK with both V1 and V2 this time, so not sure if that made the difference.

    >

    > I now have two remaining issues...

    >

    > 1- Loading the player's best high score and saving as global variable to set in text field. It's always stuck at 0.

    >

    > 2- And Display Leaderboards. When you click the icon to show leaderboard, a screen loads but the load circle just goes around and around.

    >

    > Still testing. So I'll report back if I get these to work.

    >

    What exactly did you put for App ID, Game ID and Client ID?

    The manual notes to use APP ID for the GAME ID, and that is all that is required, but I added APP ID in APP ID and GAME ID and included the CLIENT ID anyway.

    APP ID and CLIENT ID can be found by going to Google Play game services, Linked Apps, and scrolling to the bottom.

    Click on the Google Play plugin under project in left column in Construct 3, enter the info in the properties column on the left, then give it a go.

  • Kyatric thanks for the reply. turns out it is the AdBlock plugin in Chrome that is preventing certain PNGs and some other imgs from showing on this site. How odd. I tried hosting the image form my website and Dropbox and both were blocked.

  • >

    > Wow, great job! I couldn't get any scores to submit or leaderboards to show yesterday. And one Google Play event/trigger is crashing my game.

    >

    > Would you mind taking a screen capture of your events to submit score and display leaderboard? Or copy and paste as text? That would be helpful. Or PM me.

    >

    Still need help?

    Thanks for checking in I was able to set score and display leaderboard last night. So I'm making progress.

    Next, I am trying to figure out how to do the following:

    -Load the player's own high score

    -if high score (loaded above) is greater than global variable "GooglePlayHighScore", replace value in global variable variable

    -set a text field to global variable "GooglePlayHighScore"

    I've been able to do this using the Facebook Instant Games plugin, so I imagine it is possible with Google Play services, I just need to figure out the right order of events/triggers. I was trying to do this at the same time I was trying to set score and then display leaderboard, but something was crashing the game.

  • I've managed to get a working achievements and leaderboard but the actual values aren't correct, perhaps due to a lack of "trigger once while true" conditions.

    Essentially I set it up as If (is boolean set)-> unlock achievement/submit score

    Then I go into my game services and locate the corresponding ID for the intended achievement/score and insert that into the action.

    Wow, great job! I couldn't get any scores to submit or leaderboards to show yesterday. And one Google Play event/trigger is crashing my game.

    Would you mind taking a screen capture of your events to submit score and display leaderboard? Or copy and paste as text? That would be helpful. Or PM me.

  • No idea what's going on... Seems like it signs in on start screen, then on the gameplay the level, nothing i have programmed works. It wont submit score, show leaderboard, load score, etc...

KENYONB's avatar

KENYONB

Early Adopter

Member since 27 May, 2014

Twitter
KENYONB has 1 followers

Connect with KENYONB

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies