Google Play Object for Acheivements and CordovaGame plugin

0 favourites
  • 12 posts
From the Asset Store
Google Analytics 4 Plugin for Construct 3 enables metrics and analytics for your games easily.
  • I'm so confused...I tried clicking the Help for Google Play on the Google Play object, but nothing came up. I have the CordovaGame pluin and I have code for achievements, but should I use the Google play Object for achievements, or both? Say the player gets a score of 100.

    I have If Score = 100 then CordovaGame Unlock Achievement (test) Would I use the Google Play object also or just the Google Play object? Does the CordovaGame Unlock Achievement work with the Google Play object's Achievement code or would I just use Google Play?

    I did click Help on the Google Play object but nothing happened. In fact, none of the Help on '' Actions works for any of the Objects.

  • I have 9 achievements in my game. A single layout in-game that shows the achievements ( boxes created in image editor showing what it takes to get the achievement) and the event sheet that has the logic.

    During the game if the player hits an achievement, google game creates a small box in your game at the top of the screen, showing what achievement the player reached.

    The player can also go to my achievement layout in-game and see which ones they have, and how close they are to getting the next one.

    I am only using cranberrygame-plugin - game and have set up the achievements in the google dev console.

  • Thank you so so much

  • you'll have to add achievements in google dev console. At least 5 i think. When you add them you can name them anything you want to.

    Like beginner, noob, king cannon.....whatever you want.

    Google will give you an achievement ID for each one. In your logic (event sheet) when the player triggers that achievement, you have to add an action: cordovagame > unlock achievement "jfhfuf64hfrnfkjfydtrd" (tag "blowhole")

    As soon as that triggers, that's when google creates the box with whatever you named it in the dev console - king cannon

    Easy peasy

  • Sorry I'm am total noob with this, but do I need to create a list of Achievements in my actual game? Like I have a list in the game that i set up so it changes whenever someone unlocks an achievement? Or can I have a button that says when clicked, Show Achievements list from Google Play? Like click button > CordovaGame Show Achievements.

    What's getting me is there is also a Google Play object as well, which I know can be used to sign in and for Leaderboards. So why not use the Google Play object for Achievements as well?

    Testing: Is it possible to test Achievements, Leaderboards, and IAP in a browser or do I have to upload them first as an Alpha?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sorry I'm am total noob with this, but do I need to create a list of Achievements in my actual game? Like I have a list in the game that i set up so it changes whenever someone unlocks an achievement? Or can I have a button that says when clicked, Show Achievements list from Google Play? Like click button > CordovaGame Show Achievements.

    What's getting me is there is also a Google Play object as well, which I know can be used to sign in and for Leaderboards. So why not use the Google Play object for Achievements as well?

    Testing: Is it possible to test Achievements, Leaderboards, and IAP in a browser or do I have to upload them first as an Alpha?

    You DO NOT need to create achievements on a layout in your game. I did, cause that's my preference for the current game.

    As for the clicked button and google showing your achievements, that i do not know, haven't messed with that.

    I believe you have to upload 1 APK to google dev console 1st, making sure everything is filled out and added (there is a lot).

  • My concern is I'll upload it to test it and if I have to change anything, I'll have to keep upping the version numbers in Intel XDX. So when I actually publish it, it'll be like version 4 or 5. Because in Intel XDX each time you upload something, you have to increase its version number by one.

  • Phoenixbowman

    The App version code is only for the APK you upload to the dev console.

    The App version is what shows in the play store, such as 1.0.3.1 or 1.07

  • So I can keep it as "1.0" and just change the app version code. Sorry for all of the questions, this is new territory for me.

    If you have any questions jeffige, feel free to ask them, and I can try to help.

  • So I have CordovaGame Unlock Achievement, and if they are signed in, it will register. if they're not signed in im guessing the achievement won't register lol.

    Is there a way to test achievements without actually getting them in the game? like running a test to see if the achievements actually register.

  • I'm guessing once an achievement unlocks it can't get unlocked again, Say its get 200 elfstones (Shanarra Chronicles reference they're aren't actual 200 elfstones in the novel or tv series, but still....say it's get 200 elfstones. if they get 200 elfstones, acheivemtn unlocked. When they start a new game and get 200 elfstones will it unlock and they get double exp?

  • Is there a way to test achievements without actually getting them in the game? like running a test to see if the achievements actually register.

    No. They have to be in the game and in dev console for them to work.

    And yes, you ONLY have to change the App Version Code each time you upload an update to your APK, add only 1 to current version code.

    And save the current number each time, trust me!. I updated my APK maybe 5 times in one day, and i had to redo it twice cause i forgot what version code I was on.

    Also, in the app version, i would do something like 1.0.0.1, 1.0.0.2, etc, etc. Cause when you update, it will show a list of your apk's, and when it's in alpha testing you can tell your testers what version they should have.

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