hmott's Forum Posts

  • 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.

  • The cranberry plugins are now free. A link for them can be found here:

  • Can an option to toggle the state/value of an event's conditions be added for debugging?

    I'd like to right-click a condition, select "Toggle Condition", and see it's state/value in the debug screen.

    This feature would allow me to quickly see the state/value of all conditions I've toggled, without resorting to creating variables.

    Events are numbered, so that number could be used to identify which condition is being shown in the debug window.

  • I would like to be able to host a database for my app (as a substitute for Parse and FB), which inlcudes user accounts, data, and file uploads.

    Is there a way of using existing plugins (like AJAX) to interact with a self-hosted CouchDB? Are there other plugins that would accomplish this?

  • Update

    Support horizontal scrolling. (Sample capx)

    [quote:21z29oxt]Set "Axis" to "Horizontal" in properties table

    hmott

    Here it is.

    Crazy fast, thanks!

    I made another sample. It's a vertical list where each row contains a horizontal list. Anyone who wants to tweak it and repost (couldn't get the text objects that indicate row/columns to match correctly). Otherwise it works!

    Vertical and Horizontal List capx

    (Update) Rex fixed it. Awesome. I've also added a scrolling lock (built on top of Rex's sample below), which locks scrolling to vertical or horizontal, and to the horizontal row first picked. Now functions and looks like a Netfilx menu. Thanks Rex!

  • I think I will. I've tried out the plugin based on the scroll example. Is there a way of making the scrolling work horizontally?

    So far I've been able to make a quick-fix by setting the angle of the layer or layout to 90 degrees. Rotating the list box itself was producing unexpected results so far.

    Any help much appreciated.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Put Rex boundary in behaviors folder.

    Right away, thanks.

  • Hi, nice plugin. I'm trying to load the sample files, but another plugin don't seem to work.

    rex_boundary has a popup error on c2 startup: "Found 'GetPluginSettings' global, but it is not a function".

    Any ideas?

  • I am using the paster plugin by R0J0hound,

    It works exactly the way it should: create a new instance; on object created -> load an image; repeat.

  • So how did you fix the problem?

  • Very nice!

    I tried your robot game. It's pretty cool!

  • I'm working on the same problem for a few days now. Here's what I've tried so far:

    After taking a photo, it's file location is saved to the Dictionary (value), and the file name is used as the "key". Then I save the dictionary as json so that when the app starts the next time, the Dictionary is reloaded from json. This is a "instant" means of accessing data than loading each required item from memory, which requires the subsequent "on loaded" function.

    Next I used a dropdown list. Using "For each key" from the Dictionary, I add an new "item" to the list, which is nothing more than the "key" name for each entry of the Dictionary.

    Next, when you select a new item from the list, the item name can be matched to the Dictionary "key" name, which contains the file location in the Dictionary "value". Once a match is found, the sprite can load the image from the Dictionary "value", which contains the text string of the image file's location.

    I can now load any photo from the dropdown list, but I'm having a problem in automating that process on startup, such that all my photos in the list are loaded to individual sprites.

    Here's a snapshot:

    https://drive.google.com/file/d/0B7uGKf ... sp=sharing

    If this helps and anyone figures out how to load one or more photos into sprites on startup, please post solution here.

    Thanks.

  • I've been able to get spritefont to paste as expected.

    Pasting the text obejct works, but appears to paste erratically. Its position is off, and it pastes the text upside down.

    Any idea as to why?

    Looks like pasting text objects almost works properly, any chance of making it work as well as spritefonts?

    Thanks for your continued support of this plugin.