Phoenixbowman's Recent Forum Activity

  • Like the number is supposed to keep going up. How do you make it so the current value Key isn't overwritten? Where the Key value is added onto, not replaced.

  • I found the Local storage and it works well in terms of storing values, but how do you add to it? Like if I have 10 stored in local storage, how to add say 2? As of now, the 2 replaces the 10. Im trying to figure out how to make time played persist across the app being closed. I wish local storage had an addition feature. You can store values, but those values get overwritten. Is there any way to add to local storage?

    Or is there another way of keeping track of how long someone has played a game?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I didn't need the secret client ID. in the Google Dev console there is a number that you put into the Cordova Game plugin. The Android google play services ap id . That's all I needed in order to get the game to work. You have to upload an actual apk I think before you get one. Then you can use that to integrate the Cordova Game plugin in your game with Google Play.

    If you go to Game Services and select a game, or add a game, you will then get a number. It's in the upper left hand corner under the name of your game when you are in Game Services and you have the game selected. That's the number you put into the Cordova Plugin in your game. Thats how the plugin connects with Google Play in terms of Leaderboards, Achievements, etc.

    If you use Intel XDX, when you add the third-party Cordova Game plugin, it asks for the game ID. It's the same number. You can copy and paste it from the game itself, from the plugin, or from the google play dev. console.

  • Thank you so much I appreciate your help.

  • When a button is transparent (back ground color and border color set to transparent) when you click it there's a border around the button. Like you click it and a colored border appears. Is this just to show a button was clicked or is there a way around it? if its part of Construct 2, just to show a button has been clicked, that's fine.

  • It works! I tested it without Internet on till I got to the button to buy, and it still works!

    With google play, you need to set up a Consume product ID. I did it with a button that on click Consume product ID. I also set up a text box that said DING (yes, ding in all caps) to made sure it worked. I had it so on Consume Product ID success, set text box with DING to visible (the box invisible to start with.)

    To make sure it worked, i temporarily set on purchase ID succeed to set text box to visible It worked multiple times. I would do a test buy, click to consume product. After I did that, I was able to buy the product ID in a test purchase.

    Google play doesn't let developers cancel test purchases from the dev. console. So i set up a Consume Product so i could keep testing it.

  • It works! I tested it without Internet on till I got to the button to buy, and it still works!

    With google play, you need to set up a Consume product ID. I did it with a button that on click Consume product ID. I also set up a text box that said DING (yes, ding in all caps) to made sure it worked. I had it so on Consume Product ID success, set text box with DING to visible (the box invisible to start with.)

    To make sure it worked, i temporarily set on purchase ID succeed to set text box to visible It worked multiple times. I would do a test buy, click to consume product. After I did that, I was able to buy the product ID in a test purchase.

    Google play doesn't let developers cancel test purchases from the dev. console. So i set up a Consume Product so i could keep testing it.

  • http://stackoverflow.com/questions/3813 ... ne-20-2016

    That's on Google, for making it more difficult to test. I know you have to cancel a test purchase before you can test purchase again. I went to my merchant screen but didn't see the test purchase, so when that one time i tested the app with the button only buy, i was confused when nothing worked. The button that only does buy product ID, nothing was happening i think because i had already purchased the test product ><

    WTB Google bringing back the ability to cancel test purchases from merch, console.

  • I know im being a pain in the ** im sorry. i know i am. Now i find out that with Google play there is no way to refund a one-time purchase, you have to set up as consume OR wait 14 days...... so the problem with the most recent one where the button click wasn't working for Buy could be google play ><

    Turns out if you have a 1 time purchase through Google Play, there is no way to cancel to test it. As of June of last year. So someone could be testing the buy button in their app, having bought it once, and have the test purchase still active.

    The way around that is to consume the product. I'm going to try a test button that consumes the product so i can buy it again to test.

  • java.lang.IllegalStateException: Can't start async operation (launchPurchaseFlow) because another async operation(refresh inventory) is in progress.

    at com.smartmobilesoftware.util.IabHelper.flagStartAsync(IabHelper.java:821)

    at com.smartmobilesoftware.util.IabHelper.launchPurchaseFlow(IabHelper.java:375)

    at com.smartmobilesoftware.util.IabHelper.launchPurchaseFlow(IabHelper.java:340)

    at jp.wizcorp.phonegap.plugin.wizPurchase.IAP.buy(IAP.java:348)

    at jp.wizcorp.phonegap.plugin.wizPurchase.IAP.access$200(IAP.java:43)

    at jp.wizcorp.phonegap.plugin.wizPurchase.IAP$3.run(IAP.java:326)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

    at java.lang.Thread.run(Thread.java:818)

  • java.lang.IllegalStateException: Can't start async operation (launchPurchaseFlow) because another async operation(refresh inventory) is in progress.

    at com.smartmobilesoftware.util.IabHelper.flagStartAsync(IabHelper.java:821)

    at com.smartmobilesoftware.util.IabHelper.launchPurchaseFlow(IabHelper.java:375)

    at com.smartmobilesoftware.util.IabHelper.launchPurchaseFlow(IabHelper.java:340)

    at jp.wizcorp.phonegap.plugin.wizPurchase.IAP.buy(IAP.java:348)

    at jp.wizcorp.phonegap.plugin.wizPurchase.IAP.access$200(IAP.java:43)

    at jp.wizcorp.phonegap.plugin.wizPurchase.IAP$3.run(IAP.java:326)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

    at java.lang.Thread.run(Thread.java:818)

  • Just in case the person isnt online when the On start of layout triggers, i had the button do Request store listing and buy product, but that crashed the game. So basically internet is needed on at all times so On start of layout request catches.

    Theres no way to put it in so a button requests store listing.

Phoenixbowman's avatar

Phoenixbowman

Member since 18 Sep, 2015

None one is following Phoenixbowman yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies