condolent's Recent Forum Activity

  • I have a login screen where you type in your username and that stuff. That works when you (host or peer) join the game but the other players doesn't see what the name is. It doesn't synchronize to the peers. I have it as a instance variable on my hosts character but the name-text-object just shows as default to peers, I'm guessing I need to synch the text-instance-variable but that doesn't seem to work.

  • I have a text-box where a user types a name, and then it sets a variable to that text. How do I do if I want to transform that text later to caps?

  • Maybe you could check if your event and your else event work..

    Using two textobjects and set text would make this clear..

    Also I guessed you wanted to show the add unless the user had product..

    So why not show the add (not using the else) and hide it if user has product..

    Already done that.

    I have a button that I can click that gives a popup message checking if I have the product. After I purchased it, it's fine and all. No ads, it says I have the product etc.

    But when I restart, the popup says that I don't have the product and ads are back.

    Might as well do it this way. If I don't; then ads will pop out, and then when it's loaded all the products, they will disappear. It'll just look nasty

  • Added a screenshot of the events in my first post

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not sure how the product works, and how it checks if the purchase is true, but a simple workaround it would seem, would be to save a variable to localstorage at the time "has product" is true..

    Yeah that's kind of my last resort, only problem with that is that it's really easy to change the file to set it to true and get rid of ads without purchasing it.

  • Hi, I'm using Cranberry's Cordova IAP plugin for c2 and intel xdk, and it all works fine except for when I restart the app. Then the "has product" doesn't seem to work. I have it to request store listing when the layout starts and when store listing has succeeded, then it checks if the user has product ID, if the user does, an ad doesn't show. And if the user doesn't have the product, the ad shows up.

    It works fine when I purchase the product but the second I restart the app, it shows me the ads. And when I try to purchase it again, it says I already have the product. Have I done something wrong or is the plugin broken? Anyone else that has this issue and found a solution?

    Picture of my current event in the main menu:

  • I made a tutorial of how to install it properly here

  • metalmuscles intelxdk.config.additions.xml and the whole code that should be deleted:

    <intelxdk:plugin intelxdk:name="cordova-plugin-game" intelxdk:value="https://github.com/cranberrygame/cordova-plugin-game" intelxdk:id="cordova-plugin-game">
    	<intelxdk:param intelxdk:name="APP_ID" intelxdk:value="1064334934918" />
    </intelxdk:plugin>[/code:2eyjzrbe]
  • Draconiz717 no you have to add the cordova plugin aswell, go to add plugin (Intel XDK project settings) -> Add plugin -> Add a third party plugin -> type in 'cordova-plugin-game' without quotationmarks and then type in your app ID when prompted! After this, you need to go into the "develop" tab and delete the whole segment for cordova-plugin-game. This text is generated by the construct 2 plugin and you will need to remove this piece of code every time you want to make a new build. Or at least everytime you export your C2 project

  • bump

  • Using the IAP in test mode and exporting via intel xdk to my android, I cannot test if the user has product. It doens't react. And neither can I restore purchases to try to purchase it again.

    My code:

    Yes, I request store listing on my splash screen and add the product ID's.

    Question is, can I not check if a user has a product when it's in test mode??

  • Ok, thanks Ashley

condolent's avatar

condolent

Member since 25 Feb, 2013

None one is following condolent yet!

Connect with condolent

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

13/44
How to earn trophies