piranha305's Forum Posts

  • Has anyone worked with the HTMl Drag and drop API inside of construct?

    https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/File_drag_and_drop

    It seems like preventing the default behavior of the drop is not working correctly.

    here is a small test project i was using? to just get the drop handler to fire, but it would never hit the debugger statement.

    https://drive.google.com/open?id=1nXfMhuqY_Pb89yvY4jFqJh51kwoJU5r7

    Tagged:

  • Chrome also uses seperate processes for each tab, so if you have chrome open with a ton of tabs and or extensions then your chrome process will be using more resources... I have see no difference between the two and I have a pretty crappy computer.

    yep makes sense, thanks

    Ashley The remote preview is great, but having a way to open chrome dev-tools would be nice, the default f12 does not seem to work?

  • Ashley I agree with you, you can get kinda close parity with enum behavior by having an empty plugin like sprite and adding instance variable, not really sure how constant instance variables would work unless the object in question is a singleton. (if you have multiple instances, you would have to pick one to get its corresponding value). another thing that is also concerning most of the existing plugin come with extra functionality which might not be needed. if the work around is the preferred choice, it should be its own object type (not associated with sprite, which has has rendering/world properties etc), that should also allow for modifications if you wanted to expand upon it in the future. kinda of like the journey of the function plugin, it was a separate plugin for a long time until it became a first class citizen of then engine.

  • That depends you can have a constant value that means none, normally -1 or just convert it to default value and log a warning? all those little things have to fleshed out? also what would something like this really buy you? the same effect can kinda be accomplished with an empty object type and instance variables?

    it would be nice to be able to reference the enum as the integer value but also the name, and there should probably be a set of ACES around handling such a structure? another question is can this data be modified at runtime? or is it just a static list of values?

    there is also another idea for this since they are pretty similar (just where) maybe they could be merged construct3.ideas.aha.io/ideas/C3-I-207

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • while i think ENUM data types would be a great addition to construct, they need to be added holistically to the engine not just as function params,

    i agree with dop2000 not being able to use an expression in this case would really limit you, but with that said there might be a middle ground?

    enums are really just integers, lets say you were able to define them like you do a variable (global) you could have a new data type for function param called enum (which will really just take any enum type or expression) so instead of typing out a string you could do MyEnum.Choice, and the actual value of this would be the the assigned integer of Choice in the enum. this should still give you scoped intellisense but also allow for expressions based on the enum, and they could be useful outside of function params as well.

  • so the game starts up fine, no console errors, its just the editor reporting back false positives, also the highlighting of the same selected word, also highlights white space which looks a bit weird, will fill bug for this later.

  • The javascript editor is displaying error messages, did something change recently in the newest beta? with the linting?

    Tagged:

    I added to a forum topic but my post don't seem to to be visible

    construct.net/en/forum/construct-3/general-discussion-7/c3-operation-logic-148558/page-2

    this has happened before on other post in the past. here is a bug report i filed a while back github.com/Scirra/Construct.net-website-bugs/issues/104

  • I seem to be experiencing the forum bug Ashely mentioned as well, i do not see my most recent post??

  • this is a pretty interesting concept, i am more curious how the binding will work, so you have a subset of event logic, (that is self contained) and has a special identifier that references the object that it is currently bound to (self)

    so this self needs to act like an object type, so when you are adding an action to this self contained event sheet, will it be smart enough to know about the object that it is currently bound to? like if you have an 8direction behavior on a sprite, and then you bind this set of events to that object, when adding logic will the 8direction ACES show up in the context of self?

    if thats the case then the 8direction behavior becomes a hard dependency on that set of logic, and you would not be able to reuse it unless the object you attach it to, has the 8direction behavior.

    this also gets a bit hazy with specific object types? like a sprite and an array have different exposed ACES, so will self know about these? so this seems like it hinders the reuseability of this set of logic. and force the set of logic to be reused with a very specific object type that meets the criteria of having specific behaviors.

    another interesting thing is, what if in your event logic you reference an outside object? like self colldies with B, now B has to be included in the project for this to work.

    it would be really interesting if that could be parameterized, like the set of events could expose Object type properties so when you bind it to an object you have to reference the other used instances as a parameter.

    this seems like a great concept, that could really help with event sheet maintainability and also help make thing resuable, but there seem to be alot of edge cases

  • i have a bookmark to https://editor.construct.net/beta that always takes you the latest beta

  • I had a text property on the plugin and i wanted to render the text in the editor, kinda like the text plugin. i wanted to simulate the same behavior of the property being update when it gets created.

    but now that i look at bit deeper i see there is a OnPropertyChanged(id, value) on the instancebase i think i could use that with a switch statement on the id.

  • Is it possible to get a plugins property list for the editor (instance.js)... in the runtime (instance.js) the property list is passed the constructor.

    this was possible in c2 sdk because all the edittime code was in one file so the IDEInstance can reference the property_list directly. is there a way to mimic the same behavior in c3? or os the proeprty list exposed some where and I just missed it?

    Tagged: