BinaryPanda's Forum Posts

  • Try turning 'Loader style' to nothing.

  • Ah just remembered how I resolved my issue. I used the screenlock plugin for XDK

    https://github.com/yoik/cordova-yoik-screenorientation

  • What might work is if you make sure you go to full screen before calling the lockOrientation

  • I think ekajuan wants the camera at the centre of the screen with a gap around the edges so he can run it on different size devices and it will scale. Then he wants to be able to have the game scroll around but at the same time keep this extra padding in place.

    I could be wrong but that's what it sounds like.

  • Thanks, no problem

  • I am trying to access the "Style" part of an object in my index.html file using a function and was wondering if anyone knew how to do this? I am having some success but I think its a matter of scope.

    In one function I have loaded and set the style of an image and assigned it to a var logo.

    Then added and appended to the className

    logo.className += " logo-branding-image";

    document.body.appendChild(logo);

    In another function I have some code that should change its visibility:

    document.getElementsByName('logo').style.visibility = 'visible';

    From construct I am calling this function to change the visibility, but logo (or whatever I use in its place) is undefined.

    Would anyone know how to correct this issue so I can make that happen?

  • My latest creation I just had to show off:

    Subscribe to Construct videos now

    Not strictly made in construct 2 but I do have a construct 2 version I am working on for PC which is remarkably close to this version.

    Just had to get this out there first.

    https://play.google.com/store/apps/deta ... o&hl=en_GB

  • Its un reliable apparently, I would like a way to disable audio on stock android phones, I was thinking of using the browser version for this but the general conversation is that this is not such a good test to do.

  • Its not that simple. Wish it was.

  • It seems to be phones with stock android browsers where the most problems are. The files are small but the music plays, the phones can go to sleep without pressing any buttons too so cant use that to stop the audio.

    If there was a reliable way to check what browser was being used then I could disable the audio accordingly, but so far haven't found a way.

  • I am having a few problems with audio on stock android phones like Xperia A Stock and sharp mini Stock.

    Among the issues are:

    Putting the phone to sleep and the music continues to play.

    Music mutes after a couple taps of the screen.

    Anyone had issues like this?

    Is it possible to check the type of phone and disable the audio?

    Any help appreciated

  • Brilliant thank you, Fixes my issue it appears.

  • I am looking to execute some Javascript but am having trouble using a variable within the call I am making.

    Using a number is fine but I am getting errors trying to use a variable instead.

    Would anyone have an idea of how I could go about this?

    The call I am trying to make is: GameAPI.Score.submit(HiScore);

    I am getting ReferenceError: HiScore is not defined.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is it possible to check if the device your app is running on can't play music, so that I can then remove any icons associated to that?

  • It appears that there was some kind of issue with a sound sample. Discovered it by looping it in windows media player and after a while corruption set it and the sample stopped playing back. Replaced the sample, checked it and all now seems to be fine. Very odd.