qroft's Recent Forum Activity

  • Please bare with me, but does this not already work with the microphone request?

  • Though it is more than a year old.... BUMP.

  • Thanks a lot for this guide!

    One question though: how would you determine the shake sensitivity?

    In theory - i think - it should be something like dividing the current values with the last values but my problem are the negative values of the axis.

    Can you help me out?

    Hugs and greetings from this corner of the world.

  • Hey Oliverj777,

    i am searching for the same thing at the moment. What i googled was how this is usually done with a native Android programming.

    So in theory what you need is something like:

    remember all three axis (alpha,beta,gamma) and record the current time (timestamp).

    Then add all axis value together minus the difference from the timestamp + the current time.

    This result is like "how far have the axis travelled in time" <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Here is the Android version:

    http://stackoverflow.com/questions/2317 ... o-shake-it

    My problem is that i am too dump to convert it to Construct 2 <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

  • Some music player apps allow you to shake your mobile device to go to the next song.

    Is it possible to adapt this effect to Construct 2 games?

    I am thinking of some kind of "seismograph values" that can be shown in a text field,

    to find out "how hard a mobile device" has been shaken.

    Is this possible with Construct 2 ?

    Greetings and thanks,

    Carlos

  • Within my game i want to show the current user location.

    The problem is that since Chrome 50+something, Google wants apps, games and sites only to access from a secure origin, preferably via https.

    The problem:

    If you want to test out the geolocation within your game, within the game happens nothing. If you check the browser console, you see that Google informs you that Geoaccess, motion and much more is not availble from calls of unsecure origins.

    And as your local server testing is at 192.168.xxx.xx, Google Chrome automatically defines it as unsecure.

    The solution

    This is how i manged it....

    1. Open the Command line interpreter (CLI) in Windows. If you do know what this is go to Step 2

    1.1. Go to the windows Start Menu

    1.2. Imediately type in CMD, a black window pops up

    2. In the Command Line move to your Chrome Folder by using the "dir", ".." and the "cd" commands

    2.1. Find the chrome.exe somewhere in c:\program files\google\chrome\application

    Type "dir" to show the whole directory content. If you see the chrome.exe then....

    3. type this in: "chrome.exe --user-data-dir=/temp/ --unsafely-treat-insecure-origin-as-secure="http://192.xxx.x.x:50000"

    The values herein defined by X must be YOUR GAME IP VALUES !

    The best is to preview your game once and write down the number you see in the address bar.

    As soon as you press ENTER on your keyboard, Chrome will start and inform you about some insecure stuff.

    Start your game and voila: the Geolocation is shown.

    What are my advantages now?

    If you use the Chrome Developer tools you can change your Geolocation, orientation, gyroscope and much more from within he console. In other words: you can define your geolocation for London and after a refresh, your game will think that you are in London.

    I am new to Construct 2 and do not know if this is a great solution, but it works for me.

    Any questions please beneath this!

    Hugs and greetings from this corner of the planet,

    Carlos

  • Thnks oosyrag for that info.

    As i mentioned on an other post, the problem with the web-based live preview is that Google Chrome does not support

    unsecure origins for the Geolocation. I have seen that i can set up a "whitelist" containing my IP, but that is nothing that

    an amateur like me realy would love to do, as it sounds a bit difficult.

    Do you know if the live preview on mobile will be possible with Version 3 of Construct?

    Greetings and thanks.

  • Thanks for the information.

    But the main question is if native API support can be tested right away or if you have to compile/build the game first.

    What i have found last night is this:

    1. i create my game with construct 2

    2. i export my game to a folder (takes about 2 minutes) for mobile via the Cordova option

    3. i start the Phonegap Desktop application so that i can test out live my game

    The problem is when i need to change anything, i have to restart everything from the first step

    It would be awesome if you could have some kind of "live preview"

    Thanks again and greetings.

  • Maybe preview on LAN with WiFi?

    Or try it on the Construct 3 beta that is running right now, since you'll be able to use C3 on your phone.

    I just bout Construct2 a few days ago - haven't seen that there is a 3rd version popping up.

    Thanks for the info!

    Where can i download it?

    Greetings from here!

  • Ok, i found out that is is based on the "Secure Origin" policy that Google started a few years ago.

    This makes testing of my game a real hazzle, because i manualy have to set up the 192.xxx.xx:5000 address whenever i start chrome to be secure.

    Has anyone had success with this?

    What is the most easiest way to test a GPS connection with Construct 2 ?

  • I am trying out the Geolocation plugin and use the Chrome Device Tool where i can change the geolocation - but it does not work with my game.

    I have set up a simple text sprite where i want to write the geolocation in but the result is 0 (what afaik means that there is no geolocation found).

    What am i doing wrong?

    I tried the ripple Chrome plugin but that did not work either.

    Do you guys build a game and upload it to your device to test it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi there,

    i am absolutely new to Construct 2, though without the Construct programming language knowlege i bought it and like it a lot until now. Though there are a few certainly basic knowledge things that i still do not understand.

    While creating my game and testing it out within my browser, the console shows me this error:

    Blocked a frame with origin "http://cdnsure.com" from accessing a cross-origin frame.

    I think this must come from either the momentjs plugin i installed or the geolocation, but i can not find said URL somewhere within the plugins. Anyone had this problem too?

    Thanks for your time and greetings from this corner of the planet,

    Carlos

    [UPDATE - SOLVED]

    I just found out that it is the Ripple Emulator plugin for Chrome that throws this error.

    I am trying to embed the geolocation in my game and for this i needed something to emulate the GPS (what did not work)

qroft's avatar

qroft

Member since 24 Mar, 2017

None one is following qroft yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies