newt's Forum Posts

  • Because decimal math is hard for computers after a certain ...point, and the text object is optimised to take the least amount of work.

    Both are correct as far as the computer cares. Format it yourself with int, round, ceil, etc.

  • Imagine if Drawing Canvas could do splines.

  • Will do.

    It's frustrating that we have hierarchies, and timelines, but no way to do a multipart animation, let alone one done in 3d, and yet the parts are mostly there.

  • You can already copy and paste from the web gui's to C3.

    Tadaa🎉

  • Does this have a way to do billboarding along with mesh deforms for use with 3d yet?

  • Make a minimal project that replicates the issue.

    github.com/Scirra/Construct-3-bugs/issues

  • That's not a camera bob. As the previous post said it's an object sway.

  • I'm interested in this plugin but I'm afraid it will be abandoned after awhile...of course it's been 8 years since it's creation lol but still - would it be worth it to suggest to the C3 team that we get this kind of functionality built into the pathfinding behavior? Seems like it wouldn't be terrible to upgrade/implement based on how Magistross made it sound but then again I'm here because my programming skills are subpar sooooo what do I know? haha

    Thoughts anyone?

    Also, sorry if this thread is too old or if this post is slightly out of place! Thought it'd be fine but sometimes that's not the case.

    Its effectively being maintained by the community, and the original creator still has input occasionally. The plug itself has proven to be pretty much bullet proof.

  • Fireche

    You are running into a subtlety.

    > CurrentKey

    > In a For each loop, a string of the current key name. If an array is being looped, the current key is a string of the current index, e.g. "0", "1"...

    Since your data is in an array, CurrentKey will have indexes to the array. What you need to do then is load what is at that path in the json into another JSON plugin instance and then loop through that. Because the new loop in on a json object, CurrentKey will have the key names as strings.

    https://www.dropbox.com/s/3zzdt1yjk9riwwr/ReadingJSON.c3p?dl=0

    The example does just that. The only thing which is rather cryptic is the path you need to give to GetAsCompactString to extract a single item from the json array.

    For this example JSON, doing JSON.GetAsCompactString("array.0") gets you the first item as a string, which you can load into another JSON object using the Parse action.

    > 	{
    		"array": [
    > 			{"foo": "1"},
    > 			{"bar": "2"}
    > 		]
    	}
    

    An extra detail I noticed while puting the example together, it seems the path you need to give to GetAsCompactString has to be absolute.

    It's a little weird since dictionaries do return the key name, and this is essentially the same thing.

    Also looking at the example browser projects json example the for each

    For each entry in "books", text append "Book title: " & JSON.Get(".title") & newline

    Is a little convoluted since the "books" string in automatically implied rather than also returning the index.

    Then don't get me started on how that works with the dot in the json.get. I mean ok sure its key.pair, but using .pair really throws me a brain fart.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I took a look at the example project, and the current key is working like an index.

    So it's either not meant to return the name, or its bugged, and it doesn't like something about your json.

  • Yeah its not working as expected.

    I think there's quite a bit missing in the plug actually, but since it's so hard to use, people don't use it, and report issues.

  • Current key is the name, current value is the value of that key.

    Provided you have the correct path.

    If its not doing that then make a test project to someone to debug.

  • I get nothing other than regular text.

  • Nope.

    Same thing.

    Even reset. Even reset with admin on Chrome.

    Checked the 🔒 icon and the 📋 was enabled.

  • And back to not working...