Manfred's Forum Posts

  • 5 posts
  • Hi there,

    I'm having an issue with the geolocation plugin in r134, everythings works fine but the heading property. It's always set to "0" although it's giving correct orientation in Google Maps.

    I've tested it on several android devices with the same result.

    Does anyone manage to use it properly?

  • Great job Ashley for geolocation support in R134, it works perfectly fine compared to my messy plugin!

    Awesome!

  • JohnnySheffield

    Thanks that looks cool, I'll give it a try very soon, for now I'm getting my hands dirty to get to know the SDK.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks Ashley,

    Great news to hear an official plugin is coming :)

    For now I'll try to cook my own plugin to see how the Javascript SDK is working and quiclky test a basic geolocation feature.

  • Hi,

    Digging up an old thread :)

    I'm currently trying to develop a geolocation based game with Construct. However I'm struggling to implement a working solution.

    I tried using the ExecJS function in the Browser object to run the geolocation feature but I don't really know how to store latitude and longitude values into C2 variables.

    Here is my script so far (excuse the messy solution used, I've never used javascript before and I tried several things but always get returned zero in my latitude variable, I'm not even asked for geolocation permission)

    Browser.ExecJS("

    var position;

    function getLocation(p)

    {

    if (navigator.geolocation)

        {

        navigator.geolocation.watchPosition(function (position){

    "&Text.latitude &"= position.coords.latitude; }

    );

        }

    }

    ")

  • 5 posts