frozenpeas's Forum Posts

  • Had a review stating my app was "too large for what it does"

    Thing is, app size never really bothered me. I just install what i want and if i haven't got enough, space I make space for it.

    However, this review did get me thinking. Perhaps some people worry about app size.

    Looking into the size of my app built with Cordova XDK on disc before install it's some 25mb

    After install

    Total 80mb

    Application 70mb

    Data 10mb

    App is simply a photo app. Load photo, edit save. It has one jpg that is 400kb and a couple of png icons. One page of events. It uses a very small array to store runtime data. Cordova File, Device, Cranberry admob

    Basically, nothing special that many other apps contain.

    How can I optimise my app when it doesn't contain anything to optimise?

  • Some days I'm not very good at explaining lol

    Thanks

  • My game needs to be online as it pulls data files and images from a website.

    If there is no data connection I need to let the user know as the game will not work without it.

    For me, the browser object does not work for testing "is online" when exported to apk so I have to revert to other means as described in my previous post.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hmm scrub that.

    Actually, it only works when testing in Chrome or IE

    When I export to apk it thinks it's offline both when I try it your way and when I try it mine.

    I assume something is not working in the browser wrapper.

    I've tried adding website address to the allow intent, just in case.

    Looks like it's back to my old way of testing e.g. grab a text file from my server, grab the value within and assign it to a global variable, check the global variable is not zero otherwise you are offline message.

  • Heh, Thanks it works perfect.

  • Been using the browser object to detect "Is online" and have inverted it with the "X" so I have "Browser X is online" and it does not work anymore.

    Was wondering if anything had changed with the browser object ?

  • Heh, your English is fine. It's me that's not explaining it very well and English is my first language lol

    Think I understand it now.

    Thanks for all your help.

  • Thanks

    Yeah, sorry forgot to mention XDK

    What I meant to say was, Is there a particular checkbox on Construct 2 export that makes the plugin cordova inappbrowser install within XDK ?

  • Dumb question, what triggers the "cordova inappbrowser plugin" to be part of the required plugins when the project is exported ?

  • Thanks, I obviously need to do some major reading on this.

  • I've made the bottom layer transparent and tried the following code.

    I can see the image appears briefly but then disappears.

    So, is it possible to load an image into and change the c2canvas background through javascript?

     
    var canvas = document.getElementById('c2canvas'),
    context = canvas.getContext('2d');
    make_base();
    function make_base()
    {
      base_image = new Image();
      base_image.src = 'icon-256.png';
      base_image.onload = function(){
        context.drawImage(base_image, 100, 100);
      }
    }
     [/code:3uranuhu]
  • I have a sprite called "Tank" on "Layer 0"

    Trying to reference the name of a sprite or a layer with javascript.

    Do these elements have ID's like <div id="Layer 0"> or <img id="Tank" scr......>

    First time delving into SDK so go easy on me

  • So, Construct's File Chooser cannot natively load an image from either the camera or the gallery into a sprite on Android.

    Bit of a deal breaker for my current ideas, but at least I can now move on and explore other methods like Bitmap and BitmapFactory. Lots of apps have this feature so it must be possible.

    Thanks Ashley for your reply

  • Removed camera plugin and tried the "cordova-plugin-file"

    Same thing opens recent files list, lets me choose gallery etc

    Select png or jpg and sprite does not change.

    Strange thing also happens when I specify .jpg,.png within construct and build the app. The file chooser does not open the file browser at all !

  • Trying to get my head around how to make an app that is dual aspect ratio.

    My initial thoughts are making a layout 1280 square

    Place all elements in relation to the centre of the display

    Have all the menus appear with the square so that I only have to place them once

    Not sure if this is the way to achieve this.

    Anyone have any insight or best practices into dual aspect ratio apps?

    Thanks