Wishy's Recent Forum Activity

  • Pretty silly mistake...

    You have this in your update event sheet

  • this example will update the gold_key in the localstorage with the value of my gold variable...

    Exactly as how it is explained in the link i gave you...

  • I test it by having a reset button in my game, which clears all data, resets global variables and removes localstorage.

    I usually also remove my app-cache and data before trying a fresh install.

    If you mean, how does the game know it's a fresh install, well, because the variable/array is empty.

    You could also make a variable "IsFreshInstall" set to 0 after the game has started (and have it saved in localstorage).

    So the next time the game is started it will know it's not a fresh install.

    like this:

  • The width trick works with a tiledbackground. Use the same image in the tiledbackground, and set the width. It will expand as you expect.

    Yes forgot that, i included a version like this in the example too

    Hello blackhornet, yes i know with a tiledbackground it works but i dont want to use that.

    currently i downloading the last version of construct 2 because wishy created that capx with a newer C2 version that mine.

    Hope could works <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    Thanks a lot all for helping me.

    redownload https://www.dropbox.com/s/m2h4k8j1c3dpn ... .capx?dl=0 for a version with tiledbackground too

  • Just have a variable in your localstorage that checks if its a new install or not, if it is, he can restore his coins, else not.

    A simple boolean would be fine.

    In my example, players can buy skins for a character ingame and this is the part that checks if he has the purchase IF the value is not in the array.

  • Thanks for the reply, but I already fixed it.

    Your link didn't help at all though, as I know how to set up the IAP, and it was working correctly, apart from the fact that I got charged. I clearly wrote that it worked, that my app was in testmode AND that I got testaccounts. I did however not mentioned that my app was ALSO in Alpha test mode.

    I thought the alpha channel was specifically for this kind of testing, and as long as I had the user’s Gmail address on the whitelist, the transaction wouldn’t post. Wrong. The whitelist is ignored for published APK versionCodes.

    In fact, it’s even a bit worse than that – the whitelist is ignored for all versionCodes less than or equal to anything published. Let me illustrate that with a concrete example:

    1. The production versionCode of my app is 9 – that’s my baseline, before I started implementing IAB.

    2. After I had a first cut of IAB done – with versionCode 10 – I published it to my alpha-test group and had a whitelisted user try it. He got charged, because 10 wasn’t unpublished.

    3. Learning from these mistakes, I uploaded a later version (13) to Google Play, but did not publish it. I then emailed the APK to some whitelisted testers, who successfully used the IAB feature without being charged.

    4. Moving closer to release, I built versionCode 14 and published it to beta. I fully expect users of this version to be charged, and they are.

    5. However: the next day, one of my whitelisted test group from step 3 – still on versionCode 13 – tried out the IAB and got charged for it. My best explanation for this is that, even though 13 is still unpublished, the whitelist is ignored, because 14 is published.

    source: https://sterlingudell.wordpress.com/201 ... n-android/

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • any info on this, just been testing in app purchases too and google charged me too, I got everything on testmode and added a fresh google account to my testers

  • My avatar is a cartoon version of me, made by my brother

  • I use freesound.org alot, love it =)

Wishy's avatar

Wishy

Member since 6 Mar, 2012

None one is following Wishy yet!

Connect with Wishy

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies