MPPlantOfficial's Forum Posts

  • UPDATE: Switching to v1.6.1 WORKS!!!

    For anyone using C2 r242 and Intel XDK, be sure to Reset the cordova-plugin-inappbrowser version to v1.6.1

  • > I've always just manually disabled the shortcut from control panel.

    > I guess there is a way to do it programmically using some Windows specific code, but that can't be done with JavaScript in a browser.

    > It could possibly be done from an addon for a nwjs, but that doesn't seem like a very simple thing to do.

    >

    Do modern games use shift key? I know \ got blacklisted (shame, best key for squats in fps) but I'm not sure if the kids use shift or not, I like it, sits nicely above ctrl.

    I haven't played current games but most fps use Shift for sprint/run

  • Aren't we talking about updating the InAppBrowser plugin (cordova-plugin-inappbrowser) in Intel XDK? Its not related to the version of C2?

    It compiles fine and builds the APK file even with the InAppBrowser plugin in XDK.

    That results in black screen.

    It's actually taking out the Browser Plugin in the C2 CAPX file that made the game work.

    The purchasable Cranberry games plugin still works for the back button option but the 'close window' option doesn't work.

  • Yeah this is something I learned about not that long ago. I was getting black screens on iOS and it turned that it was related to me using an old version of the WKWebView plugin in XDK. When I updated that plugin the blackscreen issue I was having was resolved.

    Ok so in your case, it sounds like it was the 1.4.0 version of the InAppBrowser plugin that was causing blackscreens? Since you hadnt updated it I assume that was the version you were using?

    Weird thing is I'm using that version with no problems.

    Possibly. Will be doing tests when I get home. Far as I know once you install r242 there's no going back. Seems like such a hassle to uninstall, reinstall, get plugin, uninstall again....

    Best option seems to be look for a guy who doesn't have C2 yet, install and get the plugin from him.

  • That's a pretty good method , i like it. I guess average time based ads would be better. Which means i'll need to finish the game fully and insert ads after i figure out the time it would take to finish levels etc especially with skill progression causing a player to see less ads seems a great idea.

    Thanks for the reply

    Yes it is. In fact if your game is a top down shooter, say like Hotline Miami where the player WILL lose lives it'd be a bad idea to make it a life counter since it has a 1 hit death mechanism. That's what takes a 5 star game into a 1 star game.

    On the other hand, if it's level-based the player will be able to complete levels faster thus will feel more invaded by ads as he gets better. So sometimes it's better to create a "The better the player = The less ads" system

    or just go with a time counter instead like display ads every 20 minutes.

    It's good to get feedback from newbies of your game [casuals and first time players preferably. not skilled players] before you can decide.

  • >

    > One thing I just discovered though is that Im using an older version of the InAppBrowser plugin (v.1.4.0).

    > Checking the documentation I see the latest version of the plugin is v1.6.1.

    >

    >

    I'm looking at my XDK here. Seems the cordova-plugin-inappbrowser is 1.4.0 as well.

    Looking through alternate versions and seems like 1.4.0 IS the latest version.

    What are my choices here?

    EDIT: Seems like v1.6.1 DOES EXIST after all. v1.4.0 is the default plugin being fetched but you can fetch v1.6.1 manually. Will be trying to build APK from this one. Will keep you posted on the results.

  • Hi guys. Where can I find older versions of C2s default plugins?

  • >

    > Have you tried creating an APK lately though?

    > It's either C2 r242 or XDK again.

    >

    Yes Ive been exporting for Android, iOS and WinPhone as recently as the last couple of days.

    Im using C2 r242 and XDK 3759.

    One thing I just discovered though is that Im using an older version of the InAppBrowser plugin (v.1.4.0).

    Checking the documentation I see the latest version of the plugin is v1.6.1.

    Which version of the plugin was giving you black screens MPPlantOfficial? Did you have the latest version? If you did, and that was generating black screens for you, I feel reluctant to update it.

    An older version of the plugin? I didn't even know you could do that. How do I check?

    Could you upload that version?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1. Record the time the player's online

    2. 24 hours - time online = Time Offline

  • Hello Cranberry.

    I was wondering if you had other options for InApp browser. For some reason your "Close Window" action doesn't work on an Android device. Users are forced to press the Home button if they want to exit app.

  • You mean it's already in APK form in your device? I think you need some file manager which you can download from the App Store.

  • Can't really say based on your game description alone.

    The one I'm making right now for example is a simple arcade game.

    I'm displaying a fullscreen ad every 5 games. Now a newbie or a bad player would probably get a game about 30 seconds of gameplay for every life which would equate to 1 ad displayed every 2mins 30seconds but a good player can keep playing I'd say 5 minutes minimum for each life so that would be 1 ad every 25 minutes.

    So 1 ad is displayed every 2m30s - 25m with and average of about 13 minutes. That's a wide range of time.

    Everntually less and less ads are getting displayed as the player keeps getting better and better.

  • Yup R0j0 has a very good solution here.

    In one of my games also I wanted better control over the ranges of a sine value so I used another variable to fit my needs.

  • Ah ok. Well I use the browser object in my game, building with XDK and Im not getting black screens (for the moment). I wonder whats different.

    Have you tried creating an APK lately though?

    It's either C2 r242 or XDK again.

  • Easier way to do this is using the "Is touching" and "Is in touch" conditions.