KENYONB's Recent Forum Activity

  • i would love to see this come to C3. Keep us posted if you port it. Start a Kickstarter for a new laptop Prominent !!!

  • thanks for posting. this will be fun to play with.

  • it must connect after it is published. when you press Publish, it is reviewed. So only after it is approved would it connect. I think. Anyway, glad you got it working.

  • I'm guessing you need to finish filling out all the other portions of the store listing like images and description and privacy policy, etc... there should be some sort of warning or error message or link in upper right that tells you why you can't publish yet.

  • A signed APK - is this when you create a signing key? I created one of those and use it when I’m building in Phonegap and it creates a release.apk - is this what you mean?

    Yes

  • 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.

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

KENYONB's avatar

KENYONB

Early Adopter

Member since 27 May, 2014

Twitter
KENYONB has 1 followers

Connect with KENYONB

Trophy Case

  • 10-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

14/44
How to earn trophies