hmott's Recent Forum Activity

  • Update: Fix bug of get current playback time ( exp:PlaybackTime )

    hmott

    Try this new version.

    Works like a charm. Thanks a bunch!

  • Hi rexrainbow

    I'm having trouble using the function that tells me where the video is currently playing at. When I use the function a crash popup shows up. Has anyone else encountered this?

    Using the system clock as a work-around didn't help, the youtube clock and system clock weren't the same.

  • hussein

    Great plugin. The map, adding markers and circles works on Android via the cordova export/intel xdk compiler.

    When tapping on a maker, the output string parses the lat/lng/description using the "-" symbol. This causes a problem when I parse the string using the "tokenat" function and there are negative lat/lng. Could you change the symbol to something else?

    The function to remove markers doesn't work on circles. Would it be possible to modify the code so that circles and markers can be added, selected, and removed at any time? Would it be possible to add a function where the center of the map can be read, or a marker added on map touch?

    Thanks again for this plugin.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i still don't understand how to make a map with some defined points, (markers) and how to add the realtime position of the user (marker geolocation) in the same map

    The function to add a marker requires string inputs, not numbers. If you have a variable that's a number, write it like this: str(variable).

    The icon path needs to reference an image, or can be a base64 text string placed between quotation marks, ("data:image/png;base64,iVBORw0K..."). You can copy a Google image url, the url might be the base64 string.

    Then enter the icon size either as a string variable or a number between quotes ("20").

  • This plugin has been discontinued. Support for registered users is available at .

    What was the reason for removing this plugin? Would you mind posting it somewhere as open-source? It would be a shame for all that work getting lost.

  • goodfeet

    What do you mean? What's discontinued?

  • > [quote:r37ef2xt]do you mean a .capx of the project im working on with the ad Unit ID on it?

    >

    It probably doesn't need to be the capx file. C2 has a snapshot function. Highlight the segment with the ad code portion, then paste the image here.

    how do i do the snapshot?

    Left click (or shift+left-click) the boxes of code you wish to snapshot. Then right-click to bring up the c2 context menu which has a section with options to 'toggle disable', 'toggle bookmark', 'toggle breakpoint'. Below those options is the 'screenshot selection'. Click that then go to ms paint and paste.

  • [quote:2b091vaz]do you mean a .capx of the project im working on with the ad Unit ID on it?

    It probably doesn't need to be the capx file. C2 has a snapshot function. Highlight the segment with the ad code portion, then paste the image here.

  • R0J0hound

    That did the trick. I used your condensed method and got the exact results I needed.

    Here's the calc done on the website:

    Here's the code that calc's it:

    Here's my app's calc:

    What I wasn't able to get was the 0.1822 km result (or 182 m in my app's output). My app was generating an output of 211 m (or 0.211 km). Really close but wrong, not sure why. Anyway, I can move on thanks to you.

  • I'm using atan2 to find the distance between two points, following the code in this page:

    http://www.movable-type.co.uk/scripts/latlong.html

    The inputs for atan2 in the "Distance" section of that page can be used in C2 using the angle function, as mentioned by Ashley above. The syntax is angle(0,0,sqrt(1-a),sqrt(a)). On the website, the syntax is atan2(sqrt(a),sqrt(1-a)).

    I've been able to get the function working, but the output is off by 10-20%. Not sure what's happening.

    Has anyone used this successfully?

    Here's my code:

  • Hi Arne

    I'm not sure if this applies to this plugin.

    One of the permissions is for the app to run on startup.

    Does that happen with this plugin?

  • According to this page (https://developers.google.com/console/help/new/#apikeybestpractices), it's recommended that api keys be stored in "environment variables" instead of "embedding your API keys in your application".

    To me that means the same thing

    Can I add an API key as a global/local variable with peace of mind?

    I'll keep it as a local variable that only triggers just before it's needed. Thoughts?

    Thanks.

hmott's avatar

hmott

Member since 13 Nov, 2012

None one is following hmott yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies