kmsravindra's Forum Posts

  • I would like to find path that has minimal turns (or you can say minimal nodes) on a square grid with several solid obstacles placed in the grid randomly - Note that this is not necessarily the shortest path found by the pathfinding behavior...I have tried this already. Also pls note that - I have disabled diagonals in pathfinding behavior to make it travel only in straight lines on the grid.

    Any ideas on how to achieve this? Looks like I cannot use Pathfinding behavior for this as it always tries to find path with minimal distance but not minimal turns...I am trying to make a Onet game.

    Any brainees, please let me know...

  • Finally I was able to get it working with the C2 - IAP plugin as well with Cordova CLI interface...I needed to manually insatll few plugins that made it working...It will be good if this can be documented in the IAP manual as well...Thanks!

  • Thanks I finally got it working. There was one more plugin as well that needed to install which I missed earlier - corodova inapp browser. With both of these plugins now its working

  • aquinn, Correct...Thats what I too figured out. But when I go to cc.fovea.plugins.inapppurchase there are several folders and I didnt understand what to add where in the final Xcodeproject folders...I hope Ashley could help and add it to the C2-IAP manual as well. If you happen to know this by any chance, then please let me know. Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Okay finally I figured out that either Cranberry's plugin or C2 - IAP plugin only work IntelXDK!

    I strongly urge cranberrygame or Ashley to have the C2 - IAP plugin or PhonegapIAP to make it work with plain Cordova CLI / Xcode as well? Or atleast suggest how that can be done?

    I believe Cordova CLI/Prepare for iOS/Xcode project is pretty much the standard route to publish all iOS apps (w/o having to undergo the pain of using IntelXDK - back and forth between mac/desktop uploading /downloading certs/prov files/ipa's etc., etc.,). Please correct me if I am wrong.

  • Ashley,

    Could you tell me if IAP plugin works when I export it using cordova, use Cordova CLi on Mac to create project and prepare it for Xcode and run the Xcodeproject ? My app works fine but IAP doesnt work!

    Or Does IAPwork plugin work only with IntelXDK Crosswalk ? I think this is the case...Am I right? If so, can we make it compatible to work on the first method as well?

    I have done enough experimentation and research trying to use the method of - export Cordova project, using Cordova CLI / to Prepare for iOS / then opening the Xcode project to test run the app on my device using sandbox account - is not working with C2 IAP plugin.

    Could you please let me know.

    Edit - I did a build using IntelXDK-Crosswalk for iOS and it works. Can you please make the C2 - IAP plugin to work with plain Cordova CLI / Xcode as well? Or atleast suggest how that can be done? I believe Cordova CLI/Prepare for iOS/Xcode project is pretty much the standard route to publish all iOS apps (w/o having to undergo the pain of using IntelXDK - back and forth between mac/desktop uploading /downloading certs/prov files/ipa's etc., etc.,). I didn't understand why C2 official IAP plugin should be biased to work only on IntelXDK while other C2 functionality and C2 official plugins work fine using just Cordova build?

  • cranberrygame

    I am using your PhonegapIAP plugin for iOS. The problem is that I followed all the steps but still the app remains dumb doing nothing wrt IAP...Here is my screenshot. I am requesting the store listing on start of layout after adding the product id --> then the text sets to "Requesting store listing". If the store listing is successful, then the text should turn to "Request triggered" and if the store listing is unsuccessful, the text should turn "Request failed". But none of them happen and it just shows "Requesting store listing" forever on the UI. Not sure what is that I am doing wrong...The only thing is I am Cordova CLI - Xcode to build/run my app rather than IntelXDK route...Does that make any difference?

    Any help is deeply appreciated as I would have spent hours to get this working

    Here is the screenshot of my eventsheet.

    [attachment=0:jm1k25ym][/attachment:jm1k25ym]

  • Thanks

    The problem is that I followed all the steps but still the app remains dumb doing nothing...Here is my screenshot. I am requesting the store listing on start of layout after adding the product id --> then the text sets to "Requesting store listing". If the store listing is successful, then the text should turn to "Request triggered" and if the store listing is unsuccessful, the text should turn "Request failed". But none of them happen and it just shows "Requesting store listing" forever. Not sure what is that I am doing wrong...The only thing is I am using Cordova CLI - Xcode to build/run my app rather than IntelXDK route...I believe that is pretty much the standard approach to use Cordova...

    Edit - I tested with IntelXDK and it works. I didnt understand why it should be biased to IntelXDK only while other C2 functionality and C2 official plugins work fine w/o intelXDK?

  • cranberrygame, Does your cordova IAP plugin work with iOS? Please let me know. I am unable to get C2 - IAP plugin work with iOS...Though I followed all the steps in the C2 - IAP plugin page and the apple developer forums, nothing happens when I click on the in-app product in testing mode on my iPad...Not sure what I am missing...Also there is not much help on forums in this regard. Does your iAP plugin help?

    Edit - I downloaded and used your PhonegapIAP plugin as well. Even this is not working with iOS. After some more debugging, I figured out that none of the conditions like "On store listing success" or "On store listing failure" conditions are not even triggering! Could you please help? I did all the steps exactly as I have read in several forums...I would have spent 5 to 6 hours on this making sure everything was exactly setup...But no use .Please help.

  • I exactly have the same problem but on iOS. I am using C2 official IAP plugin with cordova export.

    When I try to test from my sandbox tester account in itunesconnect, then nothing happens as I click on the iAP products. No pop-up nothing...Just stays as it is...Please let me know if C2 official IAP plugin works fine OR should I use Cranberry' s plugin.

    Edit - I used Phonegap IAP plugin from cranberry plugin and used the same code as above in C2, then exported with cordova to iOS...Still nothing happens!

  • aquinn, It looks great. Could you let me know how did you manage to add IAP for iOS? I am trying to add C2 - IAP and export the app using Cordova. When I try to test from my sandbox tester account in itunesconnect, then nothing happens as I click on the iAP products. No pop-up nothing...Just stays as it is...BTW, I am adding a non-consumable product. Please let me know.

  • Do you want to loopindex the logic on number of blocks or number of squares?

    I also believe when you say 2000 squares you have them on a Tiledbackground...Otherwise performance will sure be impacted with or without the logic! Try to have as many less static objects as possible...

    You can do the above logic only if the number of blocks you have are limited in number ( say less than 60 to 70 or so)...

    Also you should call the function on a triggered event rather than every tick...otherwise performance will again take a hit.

  • Infact, I had to ask my client to look away from Construct 2 to build a game like Zuma for performance reasons

  • I usually achieve this using functions.

    I guess your top, top-right etc., blocks can be picked by some index variable relative to the current block...Otherwise you need to have some index variable depending on the instance id or while creating the blocks in the grid set a index variable for each block following a matrix notation(row number/col number).

    Once a index variable is established for each block,

    Then in a for loop, you need to check "for each" block --> pass the index variable of that block as a function param and call a function.

    In the function (on the event side) pick the block for the top, top-right blocks depending on the passed index variable vs self-index variable --> (on the action side) do whatever you want with the picked blocks.

    Hope this helps!

  • I am trying to use the C2 - IAP plugin for the first time and have a question.

    After I use the IAP action "Restore Purchase" on Restore button clicked, and lets say if restore was successful, then which of the following will detect the restore success state ?

    • On store listing success/Has ProductID events ?

    OR

    • On productID purchase success event ?

    I am taking care of the first time purchase etc., in the events/actions...Do I need to do anything else specifically for "Restore Purchase" other than just calling "Restore Purchase" IAP action when restore button is clicked?

    Thanks!