AndreasR's Forum Posts

  • I have looked everywhere on the forums and cannot find anything up to date on the matter, but here is my issue. I have the new beta build of construct 2 (r185), and trying out the Google Play Leaderboards. This is something I have been trying to impliment for a span of days and keep getting stuck. I have finally got the scores to post! YAY!! But I cannot figure out how to view the leaderboards in game, atleast on the preview. I have my http that the game tests on added to my testing addresses, so that allowed the scores to post. I can't figure out how to make the leaderboards show up in game though.. here is some screenshots of my latest attempt. [attachment=0:109knut5][/attachment:109knut5]

    This is the only thing that's holding me back from releasing my leaderboard update for my android app.

    Thanks in advance!

    The built in plugin is based on Web, if you want to publish to android I would recommend CocoonJS or the Phonegap Plugin Game.

    https://www.scirra.com/store/royalty-free-game-templates/game-template-2-leaderboard-538

    Regards

  • I'm using a modifed version of the rain effect from the Ghost Shooter in this platformer template

    https://www.scirra.com/store/games-with-source/pixel-war-platformer-884

    You can adjust the rain by variables to reduce the CPU usage.

    Regards

  • Well the best would be to use Google Drive or on a FTP server, but be aware that you never can work on the project at the same time.

    Regards

  • AndreasR I used Cordova's iap plugin, on the doucment it was called Cordova Plugin Purchase Master. I tried Cranberry's plugin but it said i had to download apps to get the password to unzip the folder is there any other way?

    Now I understand.

    Cranberrygame changed the way how he handles the free versions. I would recommend you to buy the package for 25$. This includes all plugins available and you will not need to enter a password.

    Then you can install it the same way you did with other plugins.

  • What would you recommend for HTML 5 game??

    Hi,

    The template uses the Google Play Game Service and the projects are made for Cordova and CocoonJS.

    It will not work if you compile it to HTML5 only.

    You would need to replace the leaderboard function with the build-in 'Google Play' plugin from scirra. This will work on HTML5.

  • AndreasR, Thanks for your reply. I'm looking for alternative approaches. The problem with cordova, xdk crosswalk is that it makes the .apk huge (+20mb). Does anyone know how to get an Android WebView work with c2 exported html5 output? As stated previously, since protocol is file:/// c2 will not start-up the app

    http://stackoverflow.com/questions/2087 ... ew-android

    Thanks

    Actually yes.

    2)Crosswalk android

    c2 Phonegap WebViewPlus plugin (half size of crosswalk for android)

    +

    c2 Phonegap Media plugin (sound)

    +

    c2 Export project - Cordova

    +

    xdk Build - Android

    See here: https://plus.google.com/102658703990850475314/posts/f3jYgyjAcjV

    You'll find all plugins here: http://cranberrygame.github.io/?referrer=c2gpluscommunity

  • I tried to create a simple Android app that uses WebView to load local file; c2 index.html. My thinking is to use this approach to load the html5 c2 exported app using WebView. A WebView can load a local file using file:/// protocol. However, c2 checks to see if protocol is file:/// and it will show error message. Is there anyway to overwrite this default behaviour?

    THANKS

    Maybe my tutorial will help you

    http://help.shatter-box.com/wiki/intel-xdk-how-to-build-to-android-with-crosswalk/

  • If you want learn about the general function of the LocalStorage plugin feel free to check out my tutorial here.

    https://www.scirra.com/tutorials/1461/how-to-use-the-localstorage-plugin

    If you want I'll extend it by a HighScore function.

    Regards

    Andreas

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • cranberrygame released a new Plugin called 'Cordova Facebook'.

    This is not conflicting with the Phonegap Game plugin anymore. I'll release a tutorial for that soon.

    Just PM me if you have question till the tutorial submission is back online.

  • Hi firezombie444

    What plugin did you download?

    I'm using cranberrygame 's plugins and the work fine. Just download the plugin, unzip it, close C2 and create a new folder witht the plugin name at /install-path/Construct2/exporter/html/plugins/...<YOUR NEW FOLDER>

    Then copy the content (..js files and so on) in this folder.

    Then open C2 and it should work

  • For all German Construct 2 developers, I'm building a german knowledge base for C2 Developing.

    Link: Wissensdatenbank

    Contribute your tutorials & tipps here: Contribute

    The knowledge base is open for all (no registration, no fees...). But if you have a free account you can publish your own C2 stuff like tutorials, tipps & hints and so on.

    I'll give my best to keep it up to date, every help is highly appreciated!

    To motivate some german developers I will give away free redeem codes from my seller account for everyone publishing at least to posts (for example)

  • Will this work when exporting to mobile or is it just for web?

    Hi,

    You'll find a version for exporting with Cordova, so it will work for Mobile games, but not for Web Games (HTML5).

    I'm also working on a version for CocoonJS. I probably will update the package this weekend.

    Regards,

    Andreas

  • AndreasR Ok, thank you. It's the AJAX part that I'm not sure about. How to put it on my server and how I make it readable for the game. Haven't tried to do this type of stuff before. So I'll have to look more into it and see how it works. Is it complicated?

    Well, this depends on your ability and knowledge of AJAX and PHP.

    I'm not a webdeveloper, so I have no clue about that stuff. I always contact freelancers to do such jobs.

    Basically you just need to send this code via AJAX to your server (where the php file is located processing the information).

    URLEncode("data[]") & "=" & URLEncode(str(projectversion))[/code:3698jynl]
    
    The problem will be the php file. I'm not a webdeveloper. But I guess some talented webdevelopers are among us here in the forum
  • Hi,

    You can compare the value of your Projectversion by setting a variable to 'projectversion'. Then send this to your Server (via AJAX) on the start of the layout and compare this value with the latest version your game is running on.

    Then you can either inform your player about a new version or not

    Regards

  • Oleeeee!!!!

    Thankssss

    You're welcome