joxevc's Forum Posts

  • Thank's I'll try and come back to post if it works

  • I have a simple project where I'm using geolocation plugin. When I run it on Construct 3 editor I get longitude and latitude as expected.

    When I export it to Android apk and install it on my device (Android 8.1.0) geolocation does not work. The app does not even prompt for location permission when installed (I guess the problem is about permission) but what can I do if the device does not prompt permissions?

    I've tried to export different Android versions... I' ve tried to export different ways (debug apk, signed debug apk...) but nothing seems to work.

    Any idea of how to solve this?

    Thank you

  • I've tried on iPad and works too but nothing happens in safari on macbook.

    Looking at javascript console there's an error saying:

    [Error] Viewport argument key "minimal-ui" not recognized and ignored. (preview.construct.net, line 7)

    Don't know if it has to do with it

  • I've tried with chrome, edge, firefox and worked.

    I've tried the 3 video formats supported. h264, webm and ogg.

    Here's a simple a layout with a video and a button to start it.

    https://drive.google.com/file/d/1fc01AirBFKRxFrZZIHKw814JvQllcgKR/view?usp=sharing

    Any idea of what's happening?

    Thank you

  • Hi again,

    I's been a few days since my last post. I have tried today and everything is ok (even with unsecure connection). The error disappeared. I'm confused because I can't imagine the reason why...

    I haven't done any change since my last post.

    Anyway I'll try to test both (secure and insecure conections) every time I upload my project and will tell you if the error appears again.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok I Will send you all the information asap

  • Thank you for your answer,

    Right now I was writing to ask you to forget my post...

    As in your "Publishing to the web" recommendations I have activated SSL on my website and everything works fine now.

    Seems that video plugin needs secure connection as I have been able to reproduce a similar error with a simple layer containing only a video plugin.

  • Hi all,

    My project runs ok in preview mode, but when I upload it to my website and try to run it does not work.

    The browser console shows 'TypeError: e.GetPlugin is not a function c3runtime.js:2:511080'

    Same error occurs with Chrome, Firefox and Edge

    Not sure if this is the place to post this kind of error

    Any idea of what is happening, ¿Can you help?

    Thank you,

  • Global layer was the problem,

    Thank you,

  • Hi all,

    There's something with my project that is driving me crazy.

    My project has 3 layouts, today (suddenly) every time I add a new object to one of the layouts automatically appears a copy of it in all other layers....(same uid). So if I delete it from any of the layers it disappears from all layers too..

    I have tested it with a new project and everything works as it should be,

    I wonder if my project is broken somehow

    Any idea of whats happening?

    Thanks in advance,

  • Great!!

    Thanks a lot!

    It woks with :

    window.getSelection().toString();

    But I had to uncheck the "use worker" option in project settings so I can access window object

  • Hi all,

    ¿Can you help me with this?

    I'm trying to get the selected text from a text area using javascript.

    It does not work because "selectionStart" and "selectionEnd" seem to be undefined.

    This is my code:

    const instance = runtime.objects.textAreaObject.getFirstInstance();

    var startSel= instance.selectionStart;

    var endSel= instance.selectionEnd;

    var result = instance.text;

    result = result.substr(startSel, endSel - startSel);

    alert(result);

    Any idea of what is happening?

    Do you know any other way to achieve it?

    Thank you

  • It makes sense now, thank you!

  • Hi all,

    I've noticed that form elements (textbox, button, etc...) are still visible even if there's a layer on top.

    I wonder if there is no way to hide them but hiding the form layer...

    Here is a test example

    https://drive.google.com/file/d/1fc01AirBFKRxFrZZIHKw814JvQllcgKR/view?usp=sharing

    Thanks in advance you for your help

  • Hi all,

    I'm trying to do something as simple as changing the mouse pointer when moving over some objects.

    I'm using 16x16 sprites for that.

    Mouse pointer will go back to normal if not over those objects.

    My problem is that sometimes the mousepointer does not change to normal when moving outside those objects.

    Here's a simple test example.

    https://drive.google.com/file/d/1PSqaDx9k29mYXjnUF-AqpwTDDnEcIvHL/view?usp=sharing

    Thanks in advance for your help,