Phoenixbowman's Forum Posts

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

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

  • Try Construct 3

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

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

  • I've come to the conclusion IAP is impossible in Construct 2. It's a pain in the ** and does not work reliably. I did On start of layout add and request. then i have a button that says on click buy ID and the button doesn't work.

  • I've tried multiple things and nothing is worked. Even with On Start of Layout > add product and request store listing with a button that all it does it Purchase ID.

    I've come to the conclusion that IAP is not possible in Construct 2. Both the IAP and Cordova Plugin are too buggy to work reliably.

  • The Cranberry IAP plugin doesn't work. If I have a button that does Request Store listing and purchase product, or a button that request listing and restore purchase, both crash the game with touched.

    I tried with on start of layout add product and request store listing. with a button that all it does it purchase product...and clicking it did nothing. I did on start of layout Add product request store listing. then the button that does purchase product, nothing else. clicking the button did nothing.